As you will have noted from our other QND guides, they start with asking if you have the particular program, and have you start by typing
As each distribution has its own way of installing software, this guide is intended as a pointer to installing software in the distributions with which we are familiar.
RedHat Linux developed the now common RPM system. (RPM actually stands for RedHat Package Manager) Most of the software mentioned in these QND guides will be found on one of the CDs. A typical RedHat distribution consists of 3 or 4 CDs. Most software will have to be installed as root.
So, insert the CD. (Unless mentioned otherwise in a QND guide, you might as well start with the first one.)
Login as root, or do an su.
For example, if you were searching for fetchmail, you would type, after cd'ing to the RPMS directory
If it's not on the first CD that you tried then
Then repeat the procedure with the next CD. Once you've found the program, which will be the program name with a version number, for example fetchmail-5.9.11.rpm then
|rpm -Uvh fetchmail-5.9.11.rpm
You'll see some information as it's being installed. When done, umount and eject the CDROM as above.
(We'll continue to use fetchmail as our example package)
|emerge -s fetchmail
You'll get a result like
Latest version Available: 5.9.11
It will usually also give the homepage and a brief description.
So, assuming the package is available in portage then
(You may first want to do
|emerge -p fetchmail
to see what other packages may be installed as dependencies.)
apt-cache search fetchmail
To install it, one usually only need type
apt-get install fetchmail
|pacman -Ss fetchmail
You will then find the name of the package. Usually, when installing, you don't need the version number and can simply then do
|pacman -Sy fetchmail
You will then see it download and install fetchmail.
In this case you'll get the answer of /usr/ports/mail/fetchmail.
Another, probably better way to do it is
|make search name=fetchmail
Again this must be done as root.
NetBSD is almost identical to FreeBSD save that rather than /usr/ports it is in /usr/pkgsrc. So
|cd /usr/pkgsrc/mail/fetchmail; make install
The QND guides give the link to a program's home page. If the program is not available with your distribution, the home page will almost always have information about getting the program, often having the source code and/or rpms available.
If you're not familiar with installing source code then fear not--we also have a QND guide for it.
Now repeat step one of the QND guide that you were reading. For example, if it was the fetchmail guide then
If Step 1 still fails, then something subtle is probably wrong. Try emailing your local Linux Users Group or other Linux mailing list to which you subscribe. One good one for beginners is the email@example.com list. (We know that you are member of one or the other) something like
|"I am trying to install fetchmail on (your distribution, version included). I am using the following method (include the commands that you ran to install it). However, I run 'which fetchmail' and it isn't found. Does anyone have any idea what I'm doing wrong? Thanks in advance."
Now that you're done with this, you can go back to the QND guide that you were reading and continue with what is usually step 3.