Use of the yum command in Linux

Source: Internet
Author: User
Use in Fedora12. Yum is a tool for installing and updating software online. To ensure network connection, you must have an available software source. The source of Netease 163 and sohu in China is good/

Use in Fedora 12.

Yum is a tool for installing and updating software online. To ensure network connection, you must have an available software source. The source of Netease 163 and sohu in China is good. The website of 163 is as follows: http://mirrors.163.com/, click "fedora help" in the right column after entering, There are instructions for use:

Instructions for use

Download fedora-163.repo and fedora-updates-163.repo, put in/etc/yum. repos. d/

Run yum makecache to generate Cache

Run

[Python]

  1. Yum repolist

You can confirm that 163 of the source has been added.

Sohu source size is the same: http://mirrors.sohu.com/

Common commands:

[Python]

  1. Yum list
List all software packages on the software source:


 

[Python]

  1. Yum info

Query the information of a software package:



[Python]

  1. Yum update
You can also upgrade the kernel by upgrading the software:
[Python]
  1. Yum update kernel

[Cpp]
  1. Yum install
Install the software package, for example:

Run the following command to uninstall the installed software package:

[Python]

  1. Yum remove

If you only want to download the plug-in, instead of installing it, you need to use the yum-downloadonly plug-in. If this plug-in is not installed, install it with yum:

[Cpp]

  1. Yun install yum-downloadonly
After installation, you can use the -- downloadonly plug-in to download the software package. You can also use -- downloaddir to specify the path to store the downloaded software package:
[Cpp]
  1. Yum -- downloadonly -- downloaddir =/home/down/install wget

Sometimes you need to download the source code of the software, you need to use the yumdownloader command, and use the -- source option:
[Cpp]
  1. Yumdownloader -- source wget
Download the source code package in rpm format.

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.