liunx7yum配置
时间: 2024-04-23 15:28:56 浏览: 96
正确的yum.docx
要配置yum在Linux 7上,您需要按照以下步骤进行操作:
1. 首先,安装httpd和createrepo软件包。您可以使用以下命令进行安装:
\[root@CentOS7-0003 ~\]# yum install httpd -y
\[root@CentOS7-0003 ~\]# yum install createrepo -y
\[1\]
2. 进入yum的配置目录。您可以使用以下命令进入目录:
\[root@oracle-1 dev\]# cd /etc/yum.repos.d/
\[root@oracle-1 yum.repos.d\]# ls
public-yum-ol7.repo
\[2\]
3. 查看yum列表及已安装的程序。您可以使用以下命令查看列表:
\[root@oracle-1 yum.repos.d\]# yum list
已加载插件:langpacks, ulninfo
name | 3.6 kB 00:00
ol7_UEKR4 | 3.0 kB 00:00
ol7_latest | 3.6 kB 00:00
(1/7): name/group_gz | 144 kB 00:00
(2/7): name/primary_db | 4.8 MB 00:00
(3/7): ol7_UEKR4/x86_64/updateinfo | 111 kB 00:01
(4/7): ol7_latest/x86_64/group_gz | 136 kB 00:02
(5/7): ol7_latest/x86_64/updateinfo | 3.4 MB 00:03
(6/7): ol7_UEKR4/x86_64/primary_db | 21 MB 00:05
(7/7): ol7_latest/x86_64/primary_db | 39 MB 00:36
已安装的软件包
GConf2.x86_64 3.2.6-8.el7 @anaconda/7.5
GeoIP.x86_64 1.5.0-11.el7 @anaconda/7.5
ModemManager.x86_64 1.6.10-1.el7 @anaconda/7.5
ModemManager-glib.x86_64 1.6.10-1.el7 @anaconda/7.5
NetworkManager.x86_64 1:1.10.2-13.el7 @anaconda/7.5
\[3\]
这样,您就可以在Linux 7上配置yum了。请根据您的需求进行相应的配置。
#### 引用[.reference_title]
- *1* [Linux系统Yum配置(CentOS7)](https://blog.csdn.net/zhanhjxxx/article/details/122681699)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [[Linux]Linux7 配置本地yum源](https://blog.csdn.net/HYFarashi/article/details/124802391)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文