配置本地yum源--linux5.5
2015-03-23 20:10
369 查看
1.拷贝镜像中的Server文件夹至本地/u01下
2、安装createrepo软件包
[root@fyl ~]# mount /dev/cdrom /media mount: block device /dev/cdrom is write-protected, mounting read-only [root@fyl media]# cp -r ./Server/ /u01
2、安装createrepo软件包
[root@fyl Server]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm warning: createrepo-0.4.11-3.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing... ########################################### [100%] 1:createrepo ########################################### [100%]3、创建yum repository的xml-rpm-metadata
[root@fyl Server]# createrepo -p /u01/Server/ 7/7 - gtk-vnc-0.3.8-3.el5.i386.rpm Saving Primary metadata Saving file lists metadata Saving other metadata4、配置yum.repo文件
[root@fyl yum.repos.d]# pwd /etc/yum.repos.d [root@fyl yum.repos.d]# cat yum.repo [base] name=Red Hat Enterprise Linux baseurl=file:///u01/Server enabled=1 gpgcheck=05、测试yum安装包
[root@fyl repodata]# yum install *vnc* Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Package vnc-4.1.2-14.el5_3.1.i386 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package gtk-vnc.i386 0:0.3.8-3.el5 set to be updated ---> Package gtk-vnc-devel.i386 0:0.3.8-3.el5 set to be updated ---> Package gtk-vnc-python.i386 0:0.3.8-3.el5 set to be updated ---> Package vnc-server.i386 0:4.1.2-14.el5_3.1 set to be updated ---> Package xorg-x11-server-Xvnc-source.i386 0:1.1.1-48.76.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================== Installing: gtk-vnc i386 0.3.8-3.el5 base 80 k gtk-vnc-devel i386 0.3.8-3.el5 base 8.8 k gtk-vnc-python i386 0.3.8-3.el5 base 12 k vnc-server i386 4.1.2-14.el5_3.1 base 2.0 M xorg-x11-server-Xvnc-source i386 1.1.1-48.76.el5 base 5.5 M Transaction Summary ========================================================================================================================================================== Install 5 Package(s) Upgrade 0 Package(s) Total download size: 7.6 M Is this ok [y/N]: y Downloading Packages: ---------------------------------------------------------------------------------------------------------------------------------------------------------- Total 3.4 GB/s | 7.6 MB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : xorg-x11-server-Xvnc-source 1/5 Installing : gtk-vnc 2/5 Installing : gtk-vnc-devel 3/5 Installing : vnc-server 4/5 Installing : gtk-vnc-python 5/5 Installed: gtk-vnc.i386 0:0.3.8-3.el5 gtk-vnc-devel.i386 0:0.3.8-3.el5 gtk-vnc-python.i386 0:0.3.8-3.el5 vnc-server.i386 0:4.1.2-14.el5_3.1 xorg-x11-server-Xvnc-source.i386 0:1.1.1-48.76.el5 Complete!
相关文章推荐
- Red Hat Linux 6.5配置本地yum源
- redhat enterprise linux 下配置本地yum源
- linux搭建本地YUM源配置详细步骤
- linux配置本地yum源方法
- linux5.2配置本地yum源
- Linux配置本地yum源
- redhat enterprise linux 下配置本地yum源
- 【Linux基础之yum源】centos配置本地yum源
- Linux配置yum源 本地服务。web Service 服务器
- linux redhat 6.4 本地yum源及vnc图形界面简单配置
- linux配置本地光盘yum源
- [Linux] RHEL配置本地YUM源
- Linux 本地yum源配置
- linux运维之配置本地yum源
- linux 配置iso 文件为本地yum源
- linux上配置yum源指向本地iso文件
- linux下配置本地yum源快速搭建LAMP环境
- linux下本地yum源的配置方法
- linux配置本地yum源
- linux 配置iso 文件为本地yum源