RHEL7: Create a local repositor
来源:互联网 发布:淘宝发布宝贝没有反应 编辑:程序博客网 时间:2024/06/07 10:08
Download an iso image of CentOS 7 available at the CentOS website.
You need to choose between a minimal image, a liveCD image, a DVD image or an ‘everything’ image. To build a local repository, don’t choose the minimal or the liveCD images, prefer the DVD (4GB) or the Everything images (7GB).
Create a directory for the CentOS 7 distribution:
# mkdir -p /var/www/html/centos7
Note: By creating the local repository in the /var/www/html directory, you will be ready to make it available on the network after installing an Apache webserver at a later stage.
Mount the previously downloaded Centos 7 distribution (called here CentOS-7.0-1406-x86_64-DVD.iso) and copy it locally:
# mount -o loop CentOS-7.0-1406-x86_64-DVD.iso /mnt# cd /mnt# tar cvf - . | (cd /var/www/html/centos7; tar xvf -)# cd /; umount /mnt
Go to the directory where the repository configuration is:
# cd /etc/yum.repo.d
Create the centos7.repo file and type:
[centos7]name=centos7baseurl=file:///var/www/html/centos7/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Clean up the yum configuration and check it:
# yum clean all# yum repolist all
If you regularly add new packages in your local repository, don’t forget to update it. To do that, install the createrepo package and execute it with the repository path as argument:
# yum install -y createrepo# createrepo /var/www/html/centos7# yum clean all# yum repolist all
- RHEL7: Create a local repositor
- Studio was unable to create a local connection
- Android studio 启动时出现Android studio was unable to create a local connection in order
- Create rc.local in Fedora
- RHEL7
- build a local server
- A. Local Extrema
- Create local metadata resource of yum
- 当create index local 遇到 ORA-08104
- eclipse中svn插件突然出现错误,不能连接svn了:Could not create the view: org.tigris.subversion.subclipse.ui.repositor
- eclipse中svn插件突然出现错误,不能连接svn了:Could not create the view: org.tigris.subversion.subclipse.ui.repositor
- Create a DACL
- Create a simple module
- Create a RESTful REsoure
- Create a CSV file
- Create a new role
- Create a file
- Create a Basic TreeGrid
- 第13周上机实践项目2——形状类族的中的纯虚函数
- xFermode的原理及使用
- 从webview所访问的网页端跳转到本地Activity
- Linux下文件复制
- win7开机动画自定义
- RHEL7: Create a local repositor
- 中科院开源协会镜像站 Android SDK镜像测试发布
- 关于删记录释放表空间的测试
- word宏批量处理图片大小
- linux程序设计——入门(第一章)
- 找出1001个数(区间1~1000)中重复出现的数(有两个相同)
- Setup Local Yum Repository On CentOS 7
- KMP算法
- freemarker list (长度,遍历,下标,嵌套,排序)