星期一, 九月 08, 2008

RPM

1: Installing a New Package
rpm -ivh --force --nodeps packagename.rpm


2: Querying a Package
rpm -qa | grep -i 'name'

To find out which package a particular file belongs to
rpm -qf /dir/file

To find out the purpose of a package that is already installed
rpm -qi packagename

To find out what files are contained in a package
rpm -ql packagename

To identify information about and a list of files included in an uninstalled package
rpm -qilp packagename


3:Uninstalling a Package
rpm -e packagename


在线资料



System Management Tool
1:Webmin
http://yourservername:10000
Set the yourservername to be the name of the server as described by the Webmin installation message


2:redhat-config-packages


3:APT  non-RPM package manager used in other  distribution like Debian and Ubuntu
    Please note that these apt pages are obsolete. They were written in the days when yum didn't yet exist, when apt was the only decent dependency tool for rpm around. This has changed, you should really prefer yum over apt for rpm which is now unmaintained.
     <1>:Go to the http://freshrpms.net/apt/ to download the rpm package
     <2>:rpm -ivh
     <3>:apt-get update
     <4>:apt-get -f install
     <5>:apt-get install synaptic(Download an apt GUI manager)