How would you install a software package in a given distribution: RedHat/Debian

To update the package lists type apt-get update

To search for a package type apt-cache search followed by a keyword such as spreadsheet.

Type apt-get install “program name”.

For example, to install the Dillo web browser, you would type apt-get install dillo.

To remove software is just as easy.

apt-get remove ${packagename}
Although the repositories that contain installable packages might live on the Internet or on a disc somewhere, APT keeps a local database on your hard drive with a list of all available packages and where to find them. This database needs to be explicitly updated

Fedora, Red Hat: yum

yum does for RPM packages roughly what apt-get does for Debian packages. Like apt-get, yum can download and install packages from a configured repository.

yum install ${packagename}
To remove software is just as easy.

yum remove ${packagename}
yum does not keep a local copy of your package database by default, so normally there is no need to update it. To install all available security patches and bug fixes, use this command:

yum update
You can also explicitly update a single package with:

yum update ${packagename}
For a more indepth yum tutorial and other resources, see Managing Software with yum and rpm.

Mandriva: urpm

Mandriva Linux (formerly Mandrake and Connectiva) has a toolset similar to APT called urpmi. To install software:

urpmi ${packagename}
To remove software:

urpme ${packagename}
To update the local package database:

urpmi.update -a
To install security updates and bug fixes:

urpmi –auto-select
For a more indepth yum tutorial and other resources, see Managing Software with urpm.

Method – Graphical