Expertise level: Medium
Installing software packages on Centos / Fedora servers:
Yellowdog Updater, Modified (YUM) is the package installer available with your linux server.
It is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages.
The download and the install is automated. When you install a package, the other dependent packages required will also be installed automatically.
To know the packages that are currently installed:
yum list
To install a package:
yum install <package name>
To uninstall a package:
yum remove <package name>
To update a package:
yum update <package name>
To update all the packages:
yum update
To search for some packages:
yum search <package name>
To clear the cache:
yum clear all
Installing software packages on Debian servers:
To know the packages that are currently installed:
dpkg -l
To install a package:
apt-get install <package name>
To uninstall a package:
apt-get remove <package name>
To update a package:
apt-get upgrade <package name>
To update all the packages:
apt-get upgrade
To search for some packages:
apt-cache <package name>
To clear the cache:
apt-get clean
For more information, please consult the following links:
apt:
http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html
yum:
http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/
http://www.cyberciti.biz/faq/rhel-centos-fedora-list-contents-of-package-using-yum-command/
0 Comments