I. Composition of Linux applications
1. the normal execution program file is saved in the "/usr/bin" directory.
2. The server execution program file and management program file are saved in the "/usr/sbin" directory.
3. The application configuration file is saved in the "/etc" directory.
4. the application document file is saved in the "/usr/share/doc/" directory.
5. The app's theme file is saved in the "/usr/share/man" directory.
Ii. RPMRedhat Package Manager) Package management
1. query command of RPM package
Rpm-qa: Query all software packages in Linux
Run the rpm-q package name to check whether the specified software package is installed.
Run the rpm-qi package name to query the detailed information of the software package with the specified name.
Run the rpm-ql package name to query the list of files included in the software package with the specified name.
Run the rpm-qf package name to query the packages to which the specified file belongs.
Run the rpm-qpi package name to query the detailed information of the specified RPM package file.
Run the rpm-qpl package name to query the list of files contained in the specified RPM package.
2. Run the rpm command to install the software package.
Rpm-I installation package name. This is a basic installation)
The rpm-ivh installation package name displays detailed information during installation)
Note: For example, if A depends on B, you must install B before installing .)
3. Run the rpm command to uninstall the software package.
Rpm-e package name
Note: The dependency of the RPM package. For example, if A depends on B, you must first Uninstall A and then uninstall B .)
4. Use the rpm command to upgrade the Software Package
Rpm-U package name
Note: If the software package is not installed, install it directly to the current system)
3. Application compilation and Installation
1. confirm that the current system has a software compiling environment
Rpm-qa | grep gcc
2. Obtain the folder of the application's source code package and mount the CD file)
3. Release the source code package
Tar zxf package name the package format suffix is .tar.bz2)
Tar jxf package name the package format suffix is .tar.gz)
4. Set the installation path
./Configure-prefix = absolute path of the program installation directory
5. Program compilation process
Make
6. Program Installation Process
Make install
7. Clear unnecessary files
Make clean
8. Uninstall
Make uninstall
4. Install the RPM package in the graphic interface system tool
1. Command method: system-config-packages
2. menu item startup method: Applications → System Settings → Add/Remove Applications