LibrarySites.Banner

28 Days of Sitecore Rocks: Package Management - Part 1

Sitecore Rocks adds some extremely useful features for working with Sitecore packages.  Yesterday we created a new Sitecore package using Sitecore Rocks.  Today we will install the package we created yesterday and show how the Sitecore Rocks Package Manager can provide more insight into the package installation process.

Let's start by opening the Sitecore Rocks Package Manager by right clicking the Sitecore instance, in this case the Jetstream node, in the Sitecore Explorer and selecting the "Manage Packages" menu item.

 

Sitecore Rocks

 

Now that we have the Package Manager open you will notice there are five sections on the left column.  The first section is the current instance's collection of packages and anti-packages.  You will notice that we currently don't have any packages to install.

 

Sitecore Rocks

 

Let's start by uploading the package we created yesterday.  To upload a new package, select the "Upload Package" option on the left column under the "Upload" section.  Clicking the "Browse" button will open a local file explorer window to select a package locally to upload.  After locating the package for upload, simply click the "Upload" button.

 

Sitecore Rocks

 

The package will be added to the Jetstream instance packages collection and display the meta data associated with that package on the right column.  To start the package installation process, click the "Install" button next to the package to install.

 

Sitecore Rocks

 

Now that the package installer is open we have three options.

 

  • Analyze Package - Compare the items and files with the installation target to help identify potential conflicts before installing the package.
  • Create an Anti Package - A package's equivalent of a backup.
  • Install Package - Installs the package.

 

Sitecore Rocks

 

Let's start by clicking the "Analyze" button to see if we have any conflicts when installing the package.  The Analyze Package dialog has three tabs, "Items", "Files" and "Post Step."  In our simple scenario you see that we have a single item in the package and it will be overwritten when installed.  This is because I am installing the package on the same Sitecore instance that I created the package on.

 

Sitecore Rocks

 

Next let's create an Anti Package to safeguard our package installation process.  To do so, simply click the "Create Anti Package" button and an informational message will appear with the location of the Anti Package.

 

Sitecore Rocks

 

Lastly, let's install the package by clicking the "Install" button to complete the package installation process.

 

With the addition of package analysis and the ability to create anti packages we can see how using Sitecore Rocks to install packages can be very beneficial.

 

Tomorrow I will close out the package management topic by discussing package repositories and the Sitecore Marketplace.

  • Hi,  Really a good explanation on creating packages and anti-packages using Sitecore Rocks.  I have a doubt, in which location the anti-packages are stored. I can find them only in anti-packages section in Package Manager.   Thanks, Prakash