Many people have started to learn about the Linux operating system. During this period, I did not encounter many problems. I had to solve the problems before learning the Linux operating system. In a Linux operating system, there is a system software package, which functions similar to "Add/delete programs" in Windows, but is much more powerful than "Add/delete programs, it is Red Hat Package Manager (RPM ).
This toolkit was first launched by RedHat and later borrowed by other Linux developers. Because it saves Linux users a lot of time, it is widely used to install and delete software in Linux.
The following describes how to use it.
1. We get a new software, before installation, usually first check what content in this package, assuming the file is: Linux-1.4-6.i368.rpm, we can use this command to view:
Rpm-qpi Linux-1.4-6.i368.rpm
The system will list detailed information about the software package, including the number of files, file names, file size, Creation Time, and compilation date.
2. all the files listed above are not necessarily installed at the time of installation, just as the installation methods of Windows programs are classified into typical, complete, and custom. Linux also allows you to choose the installation method, in this case, we can use the following command to check which parts of the software package will be installed in the system to facilitate our selection:
Rpm-qpl Linux-1.4-6.i368.rpm
3. Select the installation method and start installation. We can install this software with rpm-ivhLinux-1.4-6.i368.rpm commands. During the installation process, if the system prompts that the software has been installed or cannot be installed for other reasons, but if we really want to execute the installation command, you can add the parameter "-replacepkgs" after-ivh ":
Rpm-ivh-replacepkgs Linux-1.4-6.i368.rpm
4. Sometimes we only need to execute the rpm-e command to uninstall a software installed.
5. upgrading a lower version of the software is a good way to improve its functions. This saves us the trouble of installing new software after uninstalling it. To upgrade a software, you only need to execute the following command: rpm-uvh. Note: The file name must be the software upgrade patch.
6. Another method for installing software is Linux's unique feature. It is also a manifestation of RMP's powerful functionality: directly installing software online through FTP sites. When you find a site that contains the software you need and connect to this site, execute the following command to achieve online installation, such as online installation of Linux-1.4-6.i368.rpm, you can use the command:
Rpm-I
Ftp://ftp.pht.com/pub/linux/redhat/...-1.4-6.i368.rpm
7. When we use computers, we will inevitably encounter misoperations. If we accidentally delete a few files and affect the system performance, how can we find out which files are missing? The RPM package provides a function to find corrupted files. Run this command: rpm-Va. Linux will list all corrupted files for you. You can fix the issue through the Linux installation CD.
8. in Linux, there are many files, which we will inevitably encounter when using. in Windows, we can use the "Start/search" menu to quickly determine which folder a file belongs, in Linux, the following command line can help us quickly determine which software package a file belongs:
Rpm-qf
9. after each software package is installed in Linux, the installation file is "reported" in the RPM database. Therefore, when we want to query the attributes of an installed software, you only need to search for the database. Note: The query command is different from the query commands described in 1 and 8. This method is only applicable to installed software packages! Command Format:
Rpm-Parameters
Through this article, you can learn how to use rpm command parameters in Linux.
- Analysis on Suse Linux under vm
- Preschool guidance: SUSE Linux
- Abbreviations in SUSE Linux
- Operation Manual: Install the RDAC driver in SUSE
- Your Chameleon: Open Suse