Article Title: installation and management skills for Linux operating system applications. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Linux application Basics
2. RPM package management
Package management system preliminary:
RPM: RPM Package Manager
Http://www.rpm.org
RPM package management system:
$ Rpm
File Name of RPPM package:
Bash-3.0-19.2.i386.rpm
Bash: Software name.
3.0-19.2: version number of the software.
I386: the lowest hardware platform that the software runs.
Rpm: the file extension used to identify the current file as a software package in rpm format.
RPM package management functions:
The rpm command can be used with different parameters to manage the following rpm packages:
Query the RPM packages installed in linux.
Query the information of the RPM package installation file.
Install the RPM package to the current linux system.
Uninstall the installed RPM package from the current linux system.
Upgrade the installed RPM package from the current linux system.
Run the rpm command to query the software package:
1. query all RPM packages installed in the system
$ Rpm-qa
Query the software packages installed in the current linux system.
Example: $ rpm-qa | grep-I x11 | head-3: view the first three packages containing the x11 string in the system.
2. Check whether the software package is installed.
$ Rpm? Q rpm package name to check whether the specified software package is installed.
For example, run $ rpm-q bash to check whether the bash software package is installed in the system.
The software package name specified in the "rpm-q" command must be accurately spelled. This command does not perform local matching queries in the software package name.
3. query the installed software package details
$ Rpm? The qi RPM package name queries the detailed information of the software package with the specified name in linux.
For example, $ rpm-qi bash checks detailed information about the bash software package.
The execution result of the "rpm-qi" command contains detailed information, including the software name, version information, package size, description, and so on.
4. query the list of files in the installed software package
$ Rpm? The ql RPM package name queries which files have been installed in the current system.
Example: $ rpm-ql bash | head-3 view the list of the first three lines of files installed by bash in the system.
$ Rpm-ql bash | grep bin filters out the list of files containing the bin string in bash.
5. query the software packages of files in the system
$ Rpm? The qf file name is used to query the software packages of the specified file in linux.
Example: $ rpm-qf/bin/bash: view the software package to which the bash file belongs.
Bash-3.0-19.2 displays the result.
6. query the information in the RPM installation package file.
$ Rpm? Check the file name of the qpi RPM package to view the detailed information before the RPM package is installed.
$ Rpm? The qpl RPM package file name displays the list of files before the RPM package is installed.
"Rpm-qpi and rpm-qpl commands can be used as an understanding of the software package before it is installed.
7. Run the rpm command to query instances.
$ Which mount obtains the executable file path of the mount command.
$ Rpm? Qf/bin/mount query the packages to which/bin/mount belongs.
$ Rpm? Qi util-detailed information about the software package of/bin/mount in linux.
$ Rpm? Qf util-linux | grep mount query/bin/mount contains all mount-related files.
[1] [2] [3] Next page