Package management -yum client configuration file

1, yum source path: the path where the repodata

2, the server configuration file is no longer needed;

3, client configuration file:

  a, / etc / yum.repos.d repo file already exists, these files to the specified position repo

  mkdir look

  b, / etc / yum.repos.d established repo file and configure content (local)

FIG repodata the position of the path, the path of the source knows yum / misc / cd

 

  c, continue configuring the second warehouse, epel warehouse (network)

When multiple yum source path, can be like the same picture in the same repo file can be placed in multiple repo file

  d, enter the location where the meta data, cleaning up metadata cache

Or delete data in / var / cache / yum / x86_64 / 7: rm -rf / var / cache / yum / *

  e, yum repolist, two reload metadata warehouse

4, use yum to install software

Guess you like

Origin www.cnblogs.com/chenxi-hxl/p/12354882.html