Yum package management tool for linux

  Yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and RedHat and CentOS. Based on RPM package management, it can automatically download and install RPM packages from a specified server, automatically handle dependencies , and install all dependent packages at one time, without having to download and install tediously again and again. (written in python)

Use ls /etc/yum.repos.d to view the yum source that comes with the system:

Common commands:

  yum -y install: install

  yum -y insatll *http*: ambiguous install

  yum erase: delete

  yum clear all: Clear the dependency cache of all yun sources

  yum makecache: load all dependencies into the cache

How to build a local yun source:

  Step 1: Create a folder: mkdir /local

  Step 2: Store the package locally

  Step 3: Modify /etc/yum.repos.d/local.repo

  Edited as follows:

  

   Step 4: Establish dependencies: createrepo /local

  -----Yum can automatically handle dependencies, so unlike rpm installation, rpm directly searches the file path for installation, while yum installation searches for the dependency files of the yum source, and then installs each other.

 

  How to download while installing:

  Edit the file: vim /etc/yum.conf

  

---------------------------------------------------------------------------------------------------------------------

I encountered this problem while executing the yum command:

This is yum updating automatically:

Use rm -f /var/run/yum.pid or /etc/init.d/yun-updated stop to stop

You can also wait for the update to complete before installing it. 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325893373&siteId=291194637
Recommended