Setting up Slackware on a VPS (Part 2, using installpkg and getting packages)

The most basic thing one needs to learn when setting up Slackware (on a VPS, especially) is how to get various packages and install them. This is most easily done via the wget and installpkg commands.

http://slackware.com/getslack has a list of mirrors where you can get slackware packages. Packages will be found within a directory named slackware-VV/slackware/Xwhere VV is the Slackware distribution version and X specifies the package category.

The file slackware-VV/Slackware-HOWTO will have more comprehensive info on this. What I recommend doing is to create a directory downloaded-packages/ under /root where you store all your downloaded packages. Once in there you can execute wget to fetch the packages you want. For example, if you choose to download the mysql package from the pair.com mirror listed at http://www.slackware.com/getslack/list.php?country=USA, you can type:

It just unpacks the .tgz file and puts the package’s files in the correct directory locations. It doesn’t check for dependencies and generally doesn’t whine or try to be smarter about it than you. Just the way the gods intended it to be.

Two additional files you should know about are slackware-VV/slackware/PACKAGES.TXT and slackware-VV/slackware/MANIFEST.bz2. PACKAGES.TXT contains a description of the each package you might be looking for together with the directory it is under. MANIFEST.bz2 is a complete list of every single file in every single package.

Possibly the most important Slackware tip to know is: If you see an error message complaining that so-and-so file is missing or cannot be found, you can search for it in MANIFEST.bz2 to know which package you need to install. *This* is *the* most educational and satisfying way to learn about what packages depend on which other ones, and in practice it has yet to fail me. The catch here is that you should be able to know where such error messages may be found (which will be dealt with in a later post of this blog series).

A quick way to search inside MANIFEST.bz2 is to do: bzcat MANIFEST.bz2 | less or bzcat MANIFEST2.bz2 | grep xxx. See this for a walkthrough on the process.

This entry was posted
on Monday, June 1st, 2009 at 8:26 am by The Webmechs Editor and is filed under Hosting, Linux, OS, VPS.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.