![]()
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
What is this?RPM stands for Red Hat Package Manager. It is the system developed by Red Hat to manage the packages of their Linux distribution. It is a very efficient system used to install or uninstall any kind of applications (compilation tools, KDE...) under Linux. Usually, we also call RPMs the files that have a .rpm extension, not really packages. WARNING! This system is typical from Red Hat and may not work properly with other distributions. However, it is compatible with the Mandrake distribution. RPM files are recognized with their .rpm extensions. Their names are usually made up with something
like that: UseEverything is performed with the rpm command. How to install or update a packageIt is very easy to install a RPM. Use one of these line:
The i simply means "install this package". The U means "update"; it is obviously used to update an already installed package or install a new one if it is not installed yet. vh is used to display a scrolling bar to know in what state is the installation process. Uninstall an applicationThis is also quite simple:
WARNING! One must only use the name of the package (mysql, apache...) and not the complete name of the file. You can also add a small vh to make it nicer... QueriesIt is often useful to know what packages are installed on the system, what files are copied, or even have a short description of the package. Everytime you want to know something about a package you want to do a query. This is done with the -q option. Then, straight after it, we use an other option (a letter) to tell exactly what we want. The 4 most useful options are the following:
The basic rule is this one: if we want to query an installed package, then we do not need to use
p ( Examples:
TricksIt frenquently happens that we are looking for the package that would install a given file (typically, this happens when you are compiling something that requires as86). Here is a shell command line that may be used to look for a file in the RPM files of the local directory. Let's assume we are looking for /usr/foo/bar:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright © 2000-2002 themanualpage.org - This site is submissive to the terms of the GNU GPL and FDL licences. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||