The toolkit was first launched by Red Hat and later borrowed by other Linux developers. Because it saves a lot of time for Linux users, it is widely used to install and remove software under Linux. Here is a description of its specific use of the method.
1. We have a new software, before the installation, we usually have to look at the contents of the software package, assuming that this file is: linux-1.4-6.i368.rpm, we can use this command to view:
Details of the package will be listed, including how many files, file names, file sizes, creation time, compile date, and so on.
2. All of the files listed above are not necessarily installed when installed, just as the installation of a program in Windows is typical, complete, and customized, Linux will also allow you to choose the installation method, at this time we can use the following command to see what the package will be installed in the system, to facilitate our choice:
3. After selecting the installation mode, start the installation. We can install this software with the RPM-IVH linux-1.4-6.i368.rpm command. During the installation process, if you are prompted to install the software or for other reasons, but if we do want to execute the installation command, we can add a parameter "-replacepkgs" after-IVH:
4. Sometimes we uninstall an installed software, just execute RPM-E < filename > command.
5. Upgrading the lower version of the software is a good way to improve its functionality, so that you can save us uninstall and then install the new software, to upgrade a software, only to perform the following command: RPM-UVH < filename, note: At this time the file name must be upgraded to upgrade the software patch
6. Another way to install the software is a unique Linux, but also RMP a powerful function of a performance: through the FTP site directly online installation software. When you find the site that contains the software you need and connect to the site, execute the following command to install online, such as installing linux-1.4-6.i368.rpm online, and using the command:
7. In our use of the computer process, will inevitably be wrong operation, if we mistakenly deleted a few files and affect the performance of the system, how to find out what is the missing documents? The RPM package provides a feature to look for corrupted files, execute this command: Rpm-va, Linux will list all corrupted files for you. You can fix it with a Linux installation CD.
8.Linux system in a wide range of files, in the use of the process, will inevitably encounter the files we do not know, in Windows we can use the "Start/Find" menu to quickly determine which folder a file belongs to, in Linux, The following command line can help us quickly determine which package a file belongs to:
RPM-QF < filename >
9. When each package is installed in the Linux system, the installation files will go to the RPM database "check-in", so we want to query the properties of an installed software, just go to this database to find it. Note: The query command at this time is different from the query described in 1 and 8, which applies only to installed packages! Command format:
RPM-parameters < filename >