Linux Yum installation configuration and installation command Application

Source: Internet
Author: User

Linux Yum installation has been widely used but is constantly updated. Here we will introduce how to install and use Linux Yum to help you install and update the Linux Yum installation system. Linux itself is the core part of the operating system, that is, the kernel of the operating system. The kernel is the most basic program for completing operations. It is responsible for the startup and termination of other programs, such as text editor programs, memory application processing, hard disk access, and network connection management. Linux Yum command

I. What is Linux Yum?

Yum = Yellow dog Updater, Modified
The main function is to conveniently Add/delete/update RPM packages.
It automatically solves the dependency problem of the package.
It facilitates management of a large number of system update Problems
Note: The simplest reason for using Linux Yum instead of apt is that Fedora comes

Ii. Linux Yum point

Multiple resource libraries can be configured simultaneously (Repository)
Simple configuration file (/etc/yum. conf)
Automatically solves the dependency problem when rpm packages are added or deleted.
Easy to use
Maintain consistency with the RPM Database

3. install Linux Yum

Fedora comes with # rpm-ivh yum-2.0.4-2.noarch.rpm

Iv. Linux Yum Configuration

Note: you can modify and add the resource library in the configuration file to accelerate the download speed and have more updatable rpm packages.
Replace all content in/etc/yum. conf
[Main]
Cachedir =/var/cache/yum
Debuglevel = 2
Logfile =/var/log/yum. log
Pkgpolicy = newest
Distroverpkg = fedora-release
Tolerant = 1
Exactarch = 1
[Fedora-us-1]
Name = Fedora Core 1 -- Fedora US mirror
Base url = ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/ OS
[Fedora-us-1-updates]
Name = Fedora Core 1 updates -- Fedora US mirror
Base url = ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/updates
[Fedora-us-1-stable]
Name = Fedora Linux (stable) for Fedora Core 1 -- Fedora US mirror
Base url = ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/stable
[Freshrpms]
Name = Fedora Linux $ releasever-$ basearch-freshrpms
Baseurl = http://ayo.freshrpms.net/fedora/linux/?releasever/?basearch/freshrpms

V. Install the application in Linux Yum

Note: When Linux Yum is installed for the first time or the yum resource library is updated, Linux Yum automatically downloads all required headers and stores them in the/var/cache/yum directory, it may take a long time. check which update rpm packages are available
# Yum check-update
Install the rpm package in Linux Yum to enable xmms to play mp3
# Yum install xmms-mp3
Install mplayer and install related software automatically
# Yum install mplayer
Delete the licq package and delete the packages that are dependent on the package.
# Yum remove licq
Note: You will also be prompted to delete licq-gnome, licq-qt, and licq-text, which is very convenient.
System update (update all rpm packages that can be upgraded, including kernel)
# Yum-y update
Perform system updates on a regular basis every day
# Chkconfig yum on
# Service yum start

6. Linux Yum commands

Rpm package update
Check the updatable rpm package
# Yum check-update
Update all rpm packages
# Yum update
Update the specified rpm package, such as updating the kernel and kernel source
# Yum update kernel-source
For large-scale version upgrades, unlike yum update, the old obsolete package is also upgraded.
# Yum upgrade
Install and delete the rpm package Linux Yum
Install rpm packages like xmms-mp3
# Yum install xmms-mp3
Delete an rpm package, including packages that depend on the package
# Yum remove licq
Note: You will also be prompted to delete licq-gnome, licq-qt, and licq-text.
Parameters related to yum temporary storage (/var/cache/yum /)
Clear temporary rpm package files
# Yum clean packages
Clear temporary rpm header files
# Yum clean headers
Clear the existing rpm header file
# Yum clean oldheaders
Clear existing rpm header files and package files
# Yum clean or # yum clean all
Note: equivalent to yum clean packages + yum clean oldheaders

Rpm package list

List all rpm packages that can be installed or updated using Linux Yum in the resource library.
# Yum list
List specific Linux Yum installation or updates and installed rpm packages in the resource library.
# Yum list mozilla
# Yum list mozilla
Note: Match characters can be used in rpm package names, for example, to list all rpm packages starting with mozilla
List all updates to the rpm package in the resource library
# Yum list updates
List all rpm packages installed in Linux Yum
# Yum list installed
List rpm packages installed but not included in the resource library
# Yum list extras
Note: Download the rpm package installed in Linux Yum from other websites
Rpm package information display (the info parameter is the same as the list)
Lists information about all rpm packages that can be installed or updated in the resource library.
# Yum info
Lists the specific information of rpm packages that can be installed or updated and installed in the resource library.
# Yum info mozilla
# Yum info mozilla
Note: Match characters can be used in rpm package names, such as listing all rpm packages starting with mozilla
Lists information about all the rpm packages that can be updated in the resource library.
# Yum info updates
Lists information about all installed rpm packages.
# Yum info installed
Lists the installed rpm packages that are not included in the resource library.
# Yum info extras
Note: Download the installed rpm package information from other websites.
Search for rpm packages
Search for rpm packages matching specific characters
# Yum search mozilla
Note: Search for rpm package names and package descriptions
Search for rpm packages with specific file names
# Yum provides realplay

VII. Linux Yum Security Update freshrpms.net rpm package

Install the GPG key of freshrpms.net
# Rpm -- import http://freshrpms.net/packages/RPM-GPG-KEY.txt
Edit/etc/yum. conf and add the following information to the end.
[Freshrpms]
Name = Fedora Linux $ releasever-$ basearch-freshrpms
Baseurl = http://ayo.freshrpms.net/fedora/linux/?releasever/?basearch/freshrpms
Gpgcheck = 1
Note:
Check GPG Key
# Rpm-qa gpg-pubkey
Show Key information
# Rpm-qi gpg-pubkey-e42d547b-3960bdf1
Delete Key
# Rpm e gpg-pubkey-e42d547b-3960bdf1

  1. Fedora yum CD installation and running commands
  2. Introduction to the use of Fedora yum management tool in LINUX
  3. Introduction to common software applications installed in yum in Fedora 10
  4. Install and configure yum source in Fedora 10
  5. Detailed introduction to Fedora yum command application installation

Related Article

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.