The last article on Linux software management (RPM, Dpkg, APT) talked about how to install software by compiling the source code, but sometimes this process is really cumbersome, if someone uses the same platform to compile for us in advance, we can install it directly. In addition, we can also create a database for the installation process and save the installation location, software information, and other data, so that you can easily find and upgrade. Linux has two major software management tools: RPM and Debian Dpkg. Developed by the Debian community, www.2cto.com Dpkg is derived from the Debian Linux release. This software management tool is usually used, such as B2D and Ubuntu. RPM (RedHat Package Manager) is developed by Red hat, including Fedora, CentOS, SuSE, and other well-known releases. Table of Contents1 RPM2 DPKG and APT1 RPMRPM and srpm rpm are characterized by compiling the software first, and then recording the software version, description, compilation and use of the dependent software, during installation, check whether the system has reliable software. If yes, the software can be installed smoothly without compilation. SPRM contains the source code. The software is not compiled in advance, and the software information on which the software depends is recorded. From the above content, we can see that if the software is not installed, it will not be able to install the software in sequence. To overcome this difficulty, a YUM mechanism is created, you can obtain information about other software that the software is installed on the server, install them first, and then install the software we need. RPM software installation location www.2cto.com/etc Configuration File Location/usr/bin Executable File Location/usr/lib dynamic function library location/usr/share/doc software documentation location/usr/share/man software man File Location RPM Management Program-rpm RPM usage, you need to understand the rpm command installation: rpm-ivh packageName-I: install meaning-v: view the installation information-h: display the installation progress upgrade rpm-Uvh packageName: If not installed, then install the packageName. If the packageName is not installed, update the rpm-fvl packageName. If the rpm-qa is installed, run the following command to check whether the rpm-qa: query all installed software rpm-q [x]: x indicates different letters and functions. For more information, run the following command to uninstall rpm-e packageName: uninstall software package SRPM: query YUM search packageName: query the software yum info packageName related to packageName: query the functions of packageName software install/upgrade yun install packageName uninstall yum remove packageName 2 DPKG and APTDPKG install: dpkg-I packageName removed but not deleted configuration file: dpkg-r packageName removed and deleted configuration file: dpkg-P packageName Installation File and location: dpkg-L packageNameAPT installation: apt-get install packageName remove: apt-get remove packageName upgrade: apt-get update packageName search Description: apt-cache search packageName show more description details: apt-cache show packageName