1.搭建yum源
创建yum源
[mantou @localhost ~]$ cd /etc/yum.repos.d/
[mantou@localhost yum.repos.d]$ cp redhat.repo redhat.repo.bak
cp: cannot create regular file ‘redhat.repo.bac’: Permission denied
[mantou@localhost yum.repos.d]$ su
Password:
[root@localhost yum.repos.d]# cp redhat.repo redhat.repo.bak
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# vim redhat.repo.bak
[root@localhost yum.repos.d]# yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.</