Steps and basic principles for installing the software:
1. RPM Installation:
Definition: rpm is a package management method developed by Red Hat, which allows us to install, query, uninstall and upgrade the software conveniently. However, the dependencies between RPM packages are often cumbersome, especially when the software is made up of multiple RPM packages.
RPM Execution Installation package
Binary packages (binary) and source code packages (sources) are two types. Binary packages can be installed directly on the computer, and the source code package will be automatically compiled and installed by RPM. Source code packages often use src.rpm as the suffix name.
Command:
-IVH: Installation shows installation progress--install--verbose--hash
-UVH: Upgrade package--update;
-QPL: Lists the file information in the RPM package [Query packages list];
-QPI: Lists the description information for RPM packages [Query Package Install pack (s)];
-QF: Find which rpm package the specified file belongs to [Query file];
-va: Check all RPM packages to find the missing files [View Lost];
-E: Remove Package
Demonstrate:
Rpm-q Samba//whether the query program is installedrpm-ivh/media/cdrom/redhat/rpms/samba-3.0.Ten-1.4e.i386.rpm//install and show progress by PathRPM-IVH--relocate/=/opt/gaim gaim-1.3.0-1. fc4.i386.rpm//specifying the installation directoryrpm-IVH--test gaim-1.3.0-1. fc4.i386.rpm//used to check dependencies; not a real installation;RPM-UVH--oldpackage gaim-1.3.0-1. fc4.i386.rpm//new version downgraded to old versionrpm-qa | grep httpd #[Search Specifies whether RPM packages are installed]--all search *httpd*rpm-QL httpd #[Search RPM Package]--list all Files install directory rpm-qpi linux-1.4-6. i368.rpm #[View RPM Package]--query--package--Install package information rpm-QPF linux-1.4-6. i368.rpm #[View RPM Package]--filerpm-QpR file.rpm #[View Package] dependencies Rpm2cpio file.rpm|cpio-Div #[Extract File]rpm-IVH file.rpm #[Installing the new rpm]--install--verbose--hashrpm-ivhrpm-UVH file.rpm #[Upgrade a rpm]--upgraderpm-E file.rpm #[Delete an RPM package]--erase
2. Tar Compilation installation:
3. Yum Installation:
Yum(full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and RedHat and SUSE . Based on RPM package management, the ability to automatically download the RPM package from the specified server and install, can automatically handle dependency relationships, and install all dependent software packages at once, without the tedious download and installation.
Several ways to install Linux software, uninstall software, etc.