The simplest way to install Yum under Linux __linux

Source: Internet
Author: User

Software dependencies between Linux are complex, and sometimes installing a software takes days and 99% of the time to install the corresponding version of the dependency. The advent of Yum greatly simplifies software management, allowing users to easily download, update, and use software without having to be concerned about software dependencies. After the software installation is complete, Yum also helps set up system environment variables, greatly simplifying the workload.

There are many ways to install the Yum, the various tutorials on the web are different, the compiler installation needs to rely on a specific Python version, some will have a dependent version of the conflict, toss for several hours, found the following is the simplest available installation.

Yum simplest method of installation

Download the latest yum-3.2.28.tar.gz and unzip

wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz
Tar xvf yum-3.2.28.tar.gz

Running the installation

Touch/etc/yum.conf

CD yum-3.2.28
yummain.py Install Yum

Update the system and finish the work.

Yum Check-update
Yum Update
Yum Clean All


basic usage of Yum

The query system installs the software information that has been installed

For an RPM package, there are "-" and "." Composition, basically has the following parts: * Package Name * Version Information * Release version number * Running platform, when appearing Noarch, represents the software can be platform compatible

1 The software that has been installed in the query system

Rpm-qa

2 Query a file that has been installed to which package;

Absolute path to RPM-QF file name

3 Find out where the installed packages are installed;

Software name definition is: the RPM package to remove platform information and suffix after the information

RPM-QL Software Name

4 Query The information of an installed package

Rpm-qi Software Name

5 Check the configuration file of the installed software;

RPM-QC Software Name

6 to view a document installation location where the software has been installed:

RPM-QD Software Name

7 Check the software packages and files that have been installed;

RPM-QR Software Name

Query for package information that is not installed

1) To view the use of a package, version and other information;

Rpm-qpi rpm File

2 View the files contained in a package;

RPM-QPL rpm File

3 View the location of the package's documentation;

RPM-QPD rpm File

4 View the configuration file of a package;

RPM-QPC rpm File

5 View the dependencies of a package

RPM-QPR rpm File

Package installation, upgrades, deletes, etc.

1 Install or upgrade an RPM package

RPM-IVH rpm File "Install" RPM-UVH rpm file "Update"

2) Delete an RPM package

RPM-E Software Name

How to need to force the deletion of software regardless of dependency problem, then add--nodeps to the above command

Signature Import

RPM--import Signature file rpm--import Rpm-gpg-key

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.