23-Linux-软件包管理-YUM

迈不过友情╰ 2022-08-24 14:26 337阅读 0赞

SouthEast

由来

RPM软件包形式管理软件虽然方便, 但是需要手工解决软件包的依赖关系.
有时安装一个软件需要首先安装几十上百个其他软件, 手工解决则过于复杂.
YUM的出现就是为了解决这个问题的.

说明

YUM, Yellowdog Updater Modified.
是一个RPM的前端程序, 主要作用就是 自动解决RPM的依赖关系.

特点

自动解决依赖关系
可以对RPM进行分组, 以组为单位进行批量安装操作
引入仓库的概念, 且支持多个仓库
配置简单

仓库

说明

repository, repo
仓库 存放着大量的RPM软件包,
当使用YUM安装一个RPM包时, 会自动在仓库中查找依赖软件并安装.

仓库类型

本地的
通过 FILE协议 方式访问
网络的
通过 HTTP、FTP、NFS协议 方式访问

配置文件

位置: /etc/yum.repos.d
格式
[仓库名称]
name = 仓库的描述信息
baseurl = http://www.foo.org/yum/rpms
enabled = 0或1, 该仓库是否启用, 默认为1
gpgcheck = 0或1, 是否校验
注意
YUM配置文件必须以”.repo”结尾
一个配置文件可以配置多个仓库
/etc/yum.repos.d 目录下可以存在多个配置文件
示例 : /etc/yum.repos.d/CentOS-Base.repo

  1. [root@wuqinfei yum.repos.d]# pwd
  2. /etc/yum.repos.d
  3. [root@wuqinfei yum.repos.d]# ls -l
  4. total 16
  5. -rw-r--r--. 1 root root 1926 Jun 26 2012 CentOS-Base.repo
  6. -rw-r--r--. 1 root root 637 Jun 26 2012 CentOS-Debuginfo.repo
  7. -rw-r--r--. 1 root root 626 Jun 26 2012 CentOS-Media.repo
  8. -rw-r--r--. 1 root root 2593 Jun 26 2012 CentOS-Vault.repo
  9. [root@wuqinfei yum.repos.d]# vim CentOS-Base.repo
  10. # CentOS-Base.repo
  11. #
  12. # The mirror system uses the connecting IP address of the client and the
  13. # update status of each mirror to pick mirrors that are updated to and
  14. # geographically close to the client. You should use this for CentOS updates
  15. # unless you are manually picking other mirrors.
  16. #
  17. # If the mirrorlist= does not work for you, as a fall back you can try the
  18. # remarked out baseurl= line instead.
  19. #
  20. #
  21. [base]
  22. name=CentOS-$releasever - Base
  23. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  24. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  25. gpgcheck=1
  26. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  27. #released updates
  28. [updates]
  29. name=CentOS-$releasever - Updates
  30. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  31. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  32. gpgcheck=1
  33. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

基本命令

yum install software-name 安装指定软件

  1. [root@wuqinfei yum.repos.d]# yum install tigervnc
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Loading mirror speeds from cached hostfile
  4. * base: centos.ustc.edu.cn
  5. * extras: centos.ustc.edu.cn
  6. * updates: centos.ustc.edu.cn
  7. Setting up Install Process
  8. Resolving Dependencies
  9. --> Running transaction check
  10. ---> Package tigervnc.i686 0:1.1.0-8.el6_5 will be installed
  11. --> Finished Dependency Resolution
  12. Dependencies Resolved
  13. ================================================================================
  14. Package Arch Version Repository Size
  15. ================================================================================
  16. Installing:
  17. tigervnc i686 1.1.0-8.el6_5 updates 266 k
  18. Transaction Summary
  19. ================================================================================
  20. Install 1 Package(s)
  21. Total download size: 266 k
  22. Installed size: 683 k
  23. Is this ok [y/N]: y
  24. Downloading Packages:
  25. tigervnc-1.1.0-8.el6_5.i686.rpm | 266 kB 00:06
  26. warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
  27. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  28. Importing GPG key 0xC105B9DE:
  29. Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
  30. Package: centos-release-6-3.el6.centos.9.i686 (@anaconda-CentOS-201207051201.i386/6.3)
  31. From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  32. Is this ok [y/N]: y
  33. Running rpm_check_debug
  34. Running Transaction Test
  35. Transaction Test Succeeded
  36. Running Transaction
  37. Installing : tigervnc-1.1.0-8.el6_5.i686 1/1
  38. Verifying : tigervnc-1.1.0-8.el6_5.i686 1/1
  39. Installed:
  40. tigervnc.i686 0:1.1.0-8.el6_5
  41. Complete!
  42. [root@wuqinfei yum.repos.d]# rpm -qi tigervnc
  43. Name : tigervnc Relocations: (not relocatable)
  44. Version : 1.1.0 Vendor: CentOS
  45. Release : 8.el6_5 Build Date: Tue 04 Feb 2014 01:21:41 PM CST
  46. Install Date: Sun 09 Feb 2014 10:16:27 PM CST Build Host: c6b9.bsys.dev.centos.org
  47. Group : User Interface/Desktops Source RPM: tigervnc-1.1.0-8.el6_5.src.rpm
  48. Size : 699901 License: GPLv2+
  49. Signature : RSA/SHA1, Tue 04 Feb 2014 01:35:59 PM CST, Key ID 0946fca2c105b9de
  50. Packager : CentOS BuildSystem <http://bugs.centos.org>
  51. URL : http://www.tigervnc.com
  52. Summary : A TigerVNC remote display system
  53. Description :
  54. Virtual Network Computing (VNC) is a remote display system which
  55. allows you to view a computing 'desktop' environment not only on the
  56. machine where it is running, but from anywhere on the Internet and
  57. from a wide variety of machine architectures. This package contains a
  58. client which will allow you to connect to other desktops running a VNC
  59. server.

yum remove software-name 卸载~

  1. [root@wuqinfei yum.repos.d]# yum remove tigervnc
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Setting up Remove Process
  4. Resolving Dependencies
  5. --> Running transaction check
  6. ---> Package tigervnc.i686 0:1.1.0-8.el6_5 will be erased
  7. --> Finished Dependency Resolution
  8. Dependencies Resolved
  9. ================================================================================
  10. Package Arch Version Repository Size
  11. ================================================================================
  12. Removing:
  13. tigervnc i686 1.1.0-8.el6_5 @updates 683 k
  14. Transaction Summary
  15. ================================================================================
  16. Remove 1 Package(s)
  17. Installed size: 683 k
  18. Is this ok [y/N]: y
  19. Downloading Packages:
  20. Running rpm_check_debug
  21. Running Transaction Test
  22. Transaction Test Succeeded
  23. Running Transaction
  24. Erasing : tigervnc-1.1.0-8.el6_5.i686 1/1
  25. Verifying : tigervnc-1.1.0-8.el6_5.i686 1/1
  26. Removed:
  27. tigervnc.i686 0:1.1.0-8.el6_5
  28. Complete!

yum update software-name 升级~
示例: 安装 gcc

  1. [root@wuqinfei yum.repos.d]# yum install gcc.i686
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Loading mirror speeds from cached hostfile
  4. * base: centos.ustc.edu.cn
  5. * extras: centos.ustc.edu.cn
  6. * updates: centos.ustc.edu.cn
  7. Setting up Install Process
  8. Resolving Dependencies
  9. --> Running transaction check
  10. ---> Package gcc.i686 0:4.4.7-4.el6 will be installed
  11. --> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686
  12. --> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686
  13. --> Processing Dependency: libgcc >= 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686
  14. --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-4.el6.i686
  15. --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-4.el6.i686
  16. --> Running transaction check
  17. ---> Package cloog-ppl.i686 0:0.15.7-1.2.el6 will be installed
  18. --> Processing Dependency: libppl_c.so.2 for package: cloog-ppl-0.15.7-1.2.el6.i686
  19. --> Processing Dependency: libppl.so.7 for package: cloog-ppl-0.15.7-1.2.el6.i686
  20. ---> Package cpp.i686 0:4.4.7-4.el6 will be installed
  21. --> Processing Dependency: libmpfr.so.1 for package: cpp-4.4.7-4.el6.i686
  22. ---> Package glibc-devel.i686 0:2.12-1.132.el6 will be installed
  23. --> Processing Dependency: glibc-headers = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.i686
  24. --> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.i686
  25. --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6.i686
  26. ---> Package libgcc.i686 0:4.4.6-4.el6 will be updated
  27. ---> Package libgcc.i686 0:4.4.7-4.el6 will be an update
  28. ---> Package libgomp.i686 0:4.4.6-4.el6 will be updated
  29. ---> Package libgomp.i686 0:4.4.7-4.el6 will be an update
  30. --> Running transaction check
  31. ---> Package glibc.i686 0:2.12-1.80.el6 will be updated
  32. --> Processing Dependency: glibc = 2.12-1.80.el6 for package: glibc-common-2.12-1.80.el6.i686
  33. ---> Package glibc.i686 0:2.12-1.132.el6 will be an update
  34. ---> Package glibc-headers.i686 0:2.12-1.132.el6 will be installed
  35. --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.132.el6.i686
  36. --> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6.i686
  37. ---> Package mpfr.i686 0:2.4.1-6.el6 will be installed
  38. ---> Package ppl.i686 0:0.10.2-11.el6 will be installed
  39. --> Running transaction check
  40. ---> Package glibc-common.i686 0:2.12-1.80.el6 will be updated
  41. ---> Package glibc-common.i686 0:2.12-1.132.el6 will be an update
  42. ---> Package kernel-headers.i686 0:2.6.32-431.3.1.el6 will be installed
  43. --> Finished Dependency Resolution
  44. Dependencies Resolved
  45. ================================================================================
  46. Package Arch Version Repository Size
  47. ================================================================================
  48. Installing:
  49. gcc i686 4.4.7-4.el6 base 8.2 M
  50. Installing for dependencies:
  51. cloog-ppl i686 0.15.7-1.2.el6 base 93 k
  52. cpp i686 4.4.7-4.el6 base 3.4 M
  53. glibc-devel i686 2.12-1.132.el6 base 978 k
  54. glibc-headers i686 2.12-1.132.el6 base 616 k
  55. kernel-headers i686 2.6.32-431.3.1.el6 updates 2.8 M
  56. mpfr i686 2.4.1-6.el6 base 153 k
  57. ppl i686 0.10.2-11.el6 base 1.3 M
  58. Updating for dependencies:
  59. glibc i686 2.12-1.132.el6 base 4.3 M
  60. glibc-common i686 2.12-1.132.el6 base 14 M
  61. libgcc i686 4.4.7-4.el6 base 112 k
  62. libgomp i686 4.4.7-4.el6 base 121 k
  63. Transaction Summary
  64. ================================================================================
  65. Install 8 Package(s)
  66. Upgrade 4 Package(s)
  67. Total download size: 36 M
  68. Is this ok [y/N]: y
  69. Downloading Packages:
  70. (1/12): cloog-ppl-0.15.7-1.2.el6.i686.rpm | 93 kB 00:00
  71. (2/12): cpp-4.4.7-4.el6.i686.rpm | 3.4 MB 00:58
  72. (3/12): gcc-4.4.7-4.el6.i686.rpm | 8.2 MB 02:20
  73. (4/12): glibc-2.12-1.132.el6.i686.rpm | 4.3 MB 00:57
  74. (5/12): glibc-common-2.12-1.132.el6.i686.rpm | 14 MB 03:39
  75. (6/12): glibc-devel-2.12-1.132.el6.i686.rpm | 978 kB 00:14
  76. (7/12): glibc-headers-2.12-1.132.el6.i686.rpm | 616 kB 00:07
  77. (8/12): kernel-headers-2.6.32-431.3.1.el6.i686.rpm | 2.8 MB 00:38
  78. (9/12): libgcc-4.4.7-4.el6.i686.rpm | 112 kB 00:01
  79. (10/12): libgomp-4.4.7-4.el6.i686.rpm | 121 kB 00:01
  80. (11/12): mpfr-2.4.1-6.el6.i686.rpm | 153 kB 00:01
  81. (12/12): ppl-0.10.2-11.el6.i686.rpm | 1.3 MB 00:16
  82. --------------------------------------------------------------------------------
  83. Total 66 kB/s | 36 MB 09:20
  84. Running rpm_check_debug
  85. Running Transaction Test
  86. Transaction Test Succeeded
  87. Running Transaction
  88. Installing : kernel-headers-2.6.32-431.3.1.el6.i686 1/16
  89. Updating : libgcc-4.4.7-4.el6.i686 2/16
  90. Updating : glibc-common-2.12-1.132.el6.i686 3/16
  91. Updating : glibc-2.12-1.132.el6.i686 4/16
  92. Installing : glibc-headers-2.12-1.132.el6.i686 5/16
  93. Installing : glibc-devel-2.12-1.132.el6.i686 6/16
  94. Installing : ppl-0.10.2-11.el6.i686 7/16
  95. Installing : cloog-ppl-0.15.7-1.2.el6.i686 8/16
  96. Installing : mpfr-2.4.1-6.el6.i686 9/16
  97. Installing : cpp-4.4.7-4.el6.i686 10/16
  98. Updating : libgomp-4.4.7-4.el6.i686 11/16
  99. Installing : gcc-4.4.7-4.el6.i686 12/16
  100. Cleanup : libgomp-4.4.6-4.el6.i686 13/16
  101. Cleanup : glibc-common-2.12-1.80.el6.i686 14/16
  102. Cleanup : glibc-2.12-1.80.el6.i686 15/16
  103. Cleanup : libgcc-4.4.6-4.el6.i686 16/16
  104. Verifying : glibc-devel-2.12-1.132.el6.i686 1/16
  105. Verifying : ppl-0.10.2-11.el6.i686 2/16
  106. Verifying : kernel-headers-2.6.32-431.3.1.el6.i686 3/16
  107. Verifying : gcc-4.4.7-4.el6.i686 4/16
  108. Verifying : glibc-headers-2.12-1.132.el6.i686 5/16
  109. Verifying : libgcc-4.4.7-4.el6.i686 6/16
  110. Verifying : glibc-2.12-1.132.el6.i686 7/16
  111. Verifying : mpfr-2.4.1-6.el6.i686 8/16
  112. Verifying : libgomp-4.4.7-4.el6.i686 9/16
  113. Verifying : glibc-common-2.12-1.132.el6.i686 10/16
  114. Verifying : cpp-4.4.7-4.el6.i686 11/16
  115. Verifying : cloog-ppl-0.15.7-1.2.el6.i686 12/16
  116. Verifying : libgcc-4.4.6-4.el6.i686 13/16
  117. Verifying : libgomp-4.4.6-4.el6.i686 14/16
  118. Verifying : glibc-common-2.12-1.80.el6.i686 15/16
  119. Verifying : glibc-2.12-1.80.el6.i686 16/16
  120. Installed:
  121. gcc.i686 0:4.4.7-4.el6
  122. Dependency Installed:
  123. cloog-ppl.i686 0:0.15.7-1.2.el6 cpp.i686 0:4.4.7-4.el6
  124. glibc-devel.i686 0:2.12-1.132.el6 glibc-headers.i686 0:2.12-1.132.el6
  125. kernel-headers.i686 0:2.6.32-431.3.1.el6 mpfr.i686 0:2.4.1-6.el6
  126. ppl.i686 0:0.10.2-11.el6
  127. Dependency Updated:
  128. glibc.i686 0:2.12-1.132.el6 glibc-common.i686 0:2.12-1.132.el6
  129. libgcc.i686 0:4.4.7-4.el6 libgomp.i686 0:4.4.7-4.el6
  130. Complete!

YUM查询

yum search keyword : 搜索包含该关键字的rpm包

  1. [root@wuqinfei yum.repos.d]# yum search gcc
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Loading mirror speeds from cached hostfile
  4. * base: centos.ustc.edu.cn
  5. * extras: centos.ustc.edu.cn
  6. * updates: centos.ustc.edu.cn
  7. =============================== N/S Matched: gcc ===============================
  8. compat-libgcc-296.i686 : Compatibility 2.96-RH libgcc library
  9. gcc-c++.i686 : C++ support for GCC
  10. gcc-gnat.i686 : Ada 95 support for GCC
  11. gcc-java.i686 : Java support for GCC
  12. gcc-objc.i686 : Objective-C support for GCC
  13. gcc-objc++.i686 : Objective-C++ support for GCC
  14. libgcc.i686 : GCC version 4.4 shared support library
  15. compat-gcc-34.i686 : Compatibility GNU Compiler Collection
  16. compat-gcc-34-c++.i686 : C++ support for compatibility compiler
  17. compat-gcc-34-g77.i686 : Fortran 77 support for compatibility compiler
  18. gcc.i686 : Various compilers (C, C++, Objective-C, Java, ...)
  19. gcc-gfortran.i686 : Fortran support
  20. libgcj.i686 : Java runtime library for gcc
  21. libgcj-devel.i686 : Libraries for Java development using GCC
  22. libgcj-src.i686 : Java library sources from GCC4 preview
  23. libgomp.i686 : GCC OpenMP v3.0 shared support library
  24. libmudflap.i686 : GCC mudflap shared support library
  25. libmudflap-devel.i686 : GCC mudflap support
  26. Name and summary matches only, use "search all" for everything.

yum list (all | installed | recent | updates)
列出 所有的/已安装的/最近的/更新的
yum info packagename : 显示指定软件的信息

  1. [root@wuqinfei yum.repos.d]# yum info gcc.i686
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Loading mirror speeds from cached hostfile
  4. * base: centos.ustc.edu.cn
  5. * extras: centos.ustc.edu.cn
  6. * updates: centos.ustc.edu.cn
  7. Available Packages
  8. Name : gcc
  9. Arch : i686
  10. Version : 4.4.7
  11. Release : 4.el6
  12. Size : 8.2 M
  13. Repo : base
  14. Summary : Various compilers (C, C++, Objective-C, Java, ...)
  15. URL : http://gcc.gnu.org
  16. License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
  17. Description : The gcc package contains the GNU Compiler Collection version 4.4.
  18. : You'll need this package in order to compile C code.

yum whatprovides filename : 查询包含指定文件的rpm软件

创建yum仓库

1) 将所有rpm文件拷贝到 仓库(某个目录)
2) 安装 createrepo 软件(通过rpm命令)
3) 运行 createrepo命令
作用: 创建repodata目录, 存放索引文件
createrepo -v /rpm-directory
4) 注: 如果有分组信息, 则在运行命令时使用 “-g” 来指定分组文件
createrepo -g /tmp/*comps.xml/rpm-directory
CentOS/RHEL的分组信息保存于光盘 repodata/目录下
文件名以 “comps.xml”结尾的xml文件
5) 使用
本地 : FILE协议
网路 : HTTP FTP NFS
示例
1) 查看 CentOS_6.3 光盘中的 仓库Packages(所有rpm包)

2) 创建本地仓库目录”/wuqinfei-yum-repo”, 并将 Packages中的rpm包考进来
3) 安装 createrepo软件

  1. [root@wuqinfei ~]# yum search createrepo
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Loading mirror speeds from cached hostfile
  4. * base: centos.ustc.edu.cn
  5. * extras: centos.ustc.edu.cn
  6. * updates: centos.ustc.edu.cn
  7. =========================== N/S Matched: createrepo ============================
  8. createrepo.noarch : Creates a common metadata repository
  9. Name and summary matches only, use "search all" for everything.
  10. [root@wuqinfei ~]# yum install createrepo.noarch
  11. Loaded plugins: fastestmirror, refresh-packagekit, security
  12. Loading mirror speeds from cached hostfile
  13. * base: centos.ustc.edu.cn
  14. * extras: centos.ustc.edu.cn
  15. * updates: centos.ustc.edu.cn
  16. Setting up Install Process
  17. Resolving Dependencies
  18. --> Running transaction check
  19. ---> Package createrepo.noarch 0:0.9.9-18.el6 will be installed
  20. --> Processing Dependency: python-deltarpm for package: createrepo-0.9.9-18.el6.noarch
  21. --> Running transaction check
  22. ---> Package python-deltarpm.i686 0:3.5-0.5.20090913git.el6 will be installed
  23. --> Processing Dependency: deltarpm = 3.5-0.5.20090913git.el6 for package: python-deltarpm-3.5-0.5.20090913git.el6.i686
  24. --> Running transaction check
  25. ---> Package deltarpm.i686 0:3.5-0.5.20090913git.el6 will be installed
  26. --> Finished Dependency Resolution
  27. Dependencies Resolved
  28. ================================================================================
  29. Package Arch Version Repository
  30. Size
  31. ================================================================================
  32. Installing:
  33. createrepo noarch 0.9.9-18.el6 base 94 k
  34. Installing for dependencies:
  35. deltarpm i686 3.5-0.5.20090913git.el6 base 73 k
  36. python-deltarpm i686 3.5-0.5.20090913git.el6 base 27 k
  37. Transaction Summary
  38. ================================================================================
  39. Install 3 Package(s)
  40. Total download size: 195 k
  41. Installed size: 522 k
  42. Is this ok [y/N]: y
  43. Downloading Packages:
  44. (1/3): createrepo-0.9.9-18.el6.noarch.rpm | 94 kB 00:00
  45. (2/3): deltarpm-3.5-0.5.20090913git.el6.i686.rpm | 73 kB 00:00
  46. (3/3): python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm | 27 kB 00:00
  47. --------------------------------------------------------------------------------
  48. Total 97 kB/s | 195 kB 00:02
  49. Running rpm_check_debug
  50. Running Transaction Test
  51. Transaction Test Succeeded
  52. Running Transaction
  53. Installing : deltarpm-3.5-0.5.20090913git.el6.i686 1/3
  54. Installing : python-deltarpm-3.5-0.5.20090913git.el6.i686 2/3
  55. Installing : createrepo-0.9.9-18.el6.noarch 3/3
  56. Verifying : createrepo-0.9.9-18.el6.noarch 1/3
  57. Verifying : python-deltarpm-3.5-0.5.20090913git.el6.i686 2/3
  58. Verifying : deltarpm-3.5-0.5.20090913git.el6.i686 3/3
  59. Installed:
  60. createrepo.noarch 0:0.9.9-18.el6
  61. Dependency Installed:
  62. deltarpm.i686 0:3.5-0.5.20090913git.el6
  63. python-deltarpm.i686 0:3.5-0.5.20090913git.el6
  64. Complete!

4) 创建索引文件 : createrepo /wuqinfei-yum-repo
5) 在 “/etc/yum.repos.d”目录下 创建 “wuqinfei.repo”配置文件
[wuqinfei]
name = my repository
baseurl = file:///wuqinfei-yum-repo/
6) 清除缓存: yum clean all

发表评论

表情:
评论列表 (有 0 条评论,337人围观)

还没有评论,来说两句吧...

相关阅读