<\/span><\/h2>\nThe “stow” package should be available in your regular package repositories. In this example, we are using CentOS so we need the extended EPEL libraries. You can install them using the command:<\/span><\/p>\nyum install epel-release<\/span><\/pre>\nAnd after that, install stow like this:<\/span><\/p>\nyum install stow<\/span><\/pre>\nPress yes to confirm the installation:<\/span><\/p>\n<\/p>\n
Now that stow is installed, we have to choose where to store our package files.<\/span><\/p>\n<\/span>Step 2: Choose Where to Store Package Files<\/span><\/span><\/h2>\nThe normal “make install” command copies the package files into a variety of places. Stow works by keeping them all in one place in a single directory, and then creating symlinks to where they should have gone originally.<\/span><\/p>\nSo we need to choose a directory for where stow keeps all the package files. By convention, this is usually:<\/span><\/p>\n\/usr\/local\/stow\/<\/span><\/pre>\nAnd in this location, we have one single directory for each package. So if we want to install the “hello” program that we used as an example in the previous article, the files will be stored in:<\/span><\/p>\n\/usr\/local\/stow\/hello<\/span><\/pre>\nBut this location can be anything. Just to show, we’ll be storing the files in the following location:<\/span><\/p>\n\/home\/bhagwad\/stow\/<\/span><\/pre>\n