Linux Learning Summary (ix)-source package and RPM package installation

Source: Internet
Author: User

We are familiar with the installation of Linux software:
Https://zhidao.baidu.com/question/504980243.html
Here's the pros and cons of the source installation and Yum installation, and you can see

One. Source Package Installation

The usual approach is to install the trilogy;
./configure
Make
Make install
But it also depends on the help document inside the package.
./configure--help can see what parameters can be taken, such as--prefix=/usr/local can specify the installation directory
Source package installation is most likely to encounter packet dependency problem, which is to improve the problem-solving ability of the process, to avoid
2 compiled package installation is divided into two major systems, because the Linux distribution has two major camps:
A:debian Ubuntu
B:fedora Radhat CentOS can understand CentOS is the free version of Radhat
A camp with its own Deb package, the system comes with package management tools for dpkg, external tools for APT
B Camp comes with the RPM package, the system comes with package management tools for RPM, external tools for Yum
Both of the tools installed to be trapped in the dependencies between the package, such as the installation of a package depends on the B package, it is necessary to install the B package, if the B package is also dependent on the C package, the first installation of C package, so go until the release of dependency. The advantage of apt and Yum is that he can automatically handle dependencies between packages, lacking what to download online, if you want to install both package management tools.

Installation of two RPM packages:

RPM is an abbreviation for "Redhat package Manager"

A:RPM Tool Installation
1: Installation package: RPM-IVH + package Name
-I Installation
-V Visualization This parameter is used everywhere like RM-RVF TAR-XVF
-H Show Progress
--force mandatory installation, even if overwriting files belonging to other packages
--nodeps when there is a dependency, ignore, continue the installation
Example # rpm-i software-2.3.4.rpm--nodeps
2: Upgrade Package-U
3: Unload Package-E
4: Query Whether a package installs Rpm-q + package name This package name without platform information and suffix
-A view system all installed RPM packages
5:RPM-QI Package Name query to install package details
6:RPM-QL package Names a RPM-installed file
7:RPM-QF file absolute path query which rpm package a file belongs to
B:yum Tool Installation
1:yum list all available RPM packages
2:yum Search + keyword searches for an RPM package
such as Yum search vim or yum list |grep ' vim '
3: Installation Package
Yum install-y package name-y parameter can not add, plus the computer does not ask whether to install
4: Uninstall package Yum remove-y package name
5: Upgrade package Yum Update-y Package name
C:yum Download a Package
1: Install the Yum-downloadonly tool first
2: Download a RPM package Yum install package name--downloadonly--DOWNLOADDIR=/MNT/LV
Specify the download path after the equals sign

Linux Learning Summary (ix)-source package and RPM package installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.