vsftpd-本地yum仓库搭建介绍

首先,下载一个yum库,我这里为了演示用的是局域网的。
[[email protected] yum.repos.d]# wget http://172.16.0.1/centos6.6.repo
[[email protected] yum.repos.d]# yum makecache
1安装lftp
[[email protected] yum.repos.d]# yum -y install lftp
[[email protected] xen]# lftp 172.16.0.1
lftp 172.16.0.1:~> cd /pub/Sources/6.x86_64/xen-4.1/
下载xen.rpm包
lftp 172.16.0.1:/pub/Sources/6.x86_64/xen-4.1> mget *.rpm
146543076 bytes transferred in 20 seconds (7.15M/s)
Total 41 files transferred
lftp 172.16.0.1:/pub/Sources/6.x86_64/xen-4.1>by
[[email protected] xen]# ll
total 143196
-rw-r--r--. 1 root root 29900 Feb 3 20:51 bridge-utils-1.5-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 36412 Feb 3 20:57 bridge-utils-debuginfo-1.5-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 26657636 Feb 3 20:50 kernel-xen-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 19565560 Feb 3 20:57 kernel-xen-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 9406304 Feb 3 20:50 kernel-xen-devel-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 8529216 Feb 3 20:57 kernel-xen-devel-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 33730316 Feb 3 20:50 kernel-xen-firmware-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 1028720 Feb 3 20:57 kernel-xen-firmware-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 908388 Feb 3 20:50 kernel-xen-headers-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 844524 Feb 3 20:57 kernel-xen-headers-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 10056 Feb 3 20:57 kernel-xen-release-6-4.noarch.rpm
-rw-r--r--. 1 root root 1100320 Feb 3 20:49 xen-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 1040052 Feb 3 20:55 xen-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 1040284 Feb 3 20:55 xen-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 3317700 Feb 3 20:49 xen-debuginfo-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 3228360 Feb 3 20:55 xen-debuginfo-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 172844 Feb 3 20:49 xen-devel-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 178800 Feb 3 20:55 xen-devel-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 179012 Feb 3 20:55 xen-devel-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 894736 Feb 3 20:49 xen-doc-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 1006460 Feb 3 20:55 xen-doc-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 1006680 Feb 3 20:55 xen-doc-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 4101312 Feb 3 20:49 xen-hypervisor-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 4526372 Feb 3 20:55 xen-hypervisor-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 4526488 Feb 3 20:55 xen-hypervisor-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 320672 Feb 3 20:49 xen-libs-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 353704 Feb 3 20:55 xen-libs-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 353916 Feb 3 20:55 xen-libs-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 68112 Feb 3 20:49 xen-licenses-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 46492 Feb 3 20:55 xen-licenses-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 46704 Feb 3 20:55 xen-licenses-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 365140 Feb 3 20:49 xen-ocaml-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 266368 Feb 3 20:55 xen-ocaml-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 266576 Feb 3 20:55 xen-ocaml-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 97024 Feb 3 20:49 xen-ocaml-devel-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 50188 Feb 3 20:55 xen-ocaml-devel-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 50400 Feb 3 20:55 xen-ocaml-devel-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 5117316 Feb 3 20:49 xen-runtime-4.1.3-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 6022804 Feb 3 20:55 xen-runtime-4.2.1-1.el6.x86_64.rpm
-rw-r--r--. 1 root root 6022988 Feb 3 20:55 xen-runtime-4.2.1-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 28220 Feb 3 20:57 yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
安装createrepo
[[email protected] xen]# yum -y install createrepo
手动createrepo
[[email protected] xen]# createrepo /tmp/xen/
Spawning worker 0 with 41 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
生成repodata文件
[[email protected] xen]# ll
total 143200
-rw-r--r--. 1 root root 29900 Feb 3 20:51 bridge-utils-1.5-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 36412 Feb 3 20:57 bridge-utils-debuginfo-1.5-2.el6.x86_64.rpm
-rw-r--r--. 1 root root 26657636 Feb 3 20:50 kernel-xen-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 19565560 Feb 3 20:57 kernel-xen-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 9406304 Feb 3 20:50 kernel-xen-devel-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 8529216 Feb 3 20:57 kernel-xen-devel-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 33730316 Feb 3 20:50 kernel-xen-firmware-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 1028720 Feb 3 20:57 kernel-xen-firmware-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 908388 Feb 3 20:50 kernel-xen-headers-3.14.31-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 844524 Feb 3 20:57 kernel-xen-headers-3.7.4-1.el6xen.x86_64.rpm
-rw-r--r--. 1 root root 10056 Feb 3 20:57 kernel-xen-release-6-4.noarch.rpm
drwxr-xr-x. 2 root root 4096 Apr 10 23:49 repodata
[[email protected] xen]# cd repodata/
[[email protected] repodata]# ll
total 600
-rw-r--r--. 1 root root 34059 Apr 10 23:49 06a60ef483bbe1ef16ee805dd6aa5c267f377bd96a8665189802ae24c1700f2a-primary.sqlite.bz2
-rw-r--r--. 1 root root 9096 Apr 10 23:49 0ee035862fdfe66191c967548b67c24285b9dcbdcd95c68129e2651b45e9e9fe-other.xml.gz
-rw-r--r--. 1 root root 14984 Apr 10 23:49 380c4ae399723f1473239115e8c931aa966f1778e8a73f3e611a986e4e40072c-other.sqlite.bz2
-rw-r--r--. 1 root root 219934 Apr 10 23:49 a3af28ff67cecac208d866acc111e1a9de8d7ee2d430d70dda2203b5d671a2e0-filelists.xml.gz
-rw-r--r--. 1 root root 12453 Apr 10 23:49 bba66b2e8d46d69646a2232f35214d938b0b1315d946d93ab2248f0612449874-primary.xml.gz
-rw-r--r--. 1 root root 305222 Apr 10 23:49 bd35b0033af44093a54434cfc57865064e4b01b88e033f3865e5a6a4a4ef829e-filelists.sqlite.bz2
-rw-r--r--. 1 root root 2997 Apr 10 23:49 repomd.xml
[[email protected] repodata]#

为了演示效果,我们提前安装vsftpd,并且测试。而后将会禁用此yum源
[[email protected] repodata]# yum -y install vsftpd
[[email protected] repodata]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[[email protected] repodata]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[[email protected] repodata]#

为了减去不必要的麻烦,我们挂载centos6.6并且作为本地yum
[[email protected] repodata]# mount /dev/cdrom /opt/
mount: block device /dev/sr0 is write-protected, mounting read-only
[[email protected] repodata]#

创建本地xen yum源,顺便将其他repo文件改名。
[[email protected] repodata]# vim /etc/yum.repos.d/local-media.repo
[cdrom]
name=Centos6.6 DVD1
baseurl=file:///opt
gpgcheck=0
enabed=1

[base-xen]
name=local-xen.rpm
baseurl=file:///tmp/xen
gpgcheck=0
enabed=1
[[email protected] repodata]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
repo id repo name status
base-xen local-xen.rpm 41
cdrom Centos6.6 DVD1 6,518
repolist: 6,559
[[email protected] repodata]# yum list all xen*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Available Packages
xen.x86_64 4.2.1-2.el6 base-xen
xen-debuginfo.x86_64 4.2.1-2.el6 base-xen
xen-devel.x86_64 4.2.1-2.el6 base-xen
xen-doc.x86_64 4.2.1-2.el6 base-xen
xen-hypervisor.x86_64 4.2.1-2.el6 base-xen
xen-libs.x86_64 4.2.1-2.el6 base-xen
xen-licenses.x86_64 4.2.1-2.el6 base-xen
xen-ocaml.x86_64 4.2.1-2.el6 base-xen
xen-ocaml-devel.x86_64 4.2.1-2.el6 base-xen
xen-runtime.x86_64 4.2.1-2.el6 base-xen
[[email protected] repodata]#
执行yum -y install xen
[[email protected] repodata]# yum -y install xen
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package xen.x86_64 0:4.2.1-2.el6 will be installed
base-xen/filelists_db | 298 kB 00:00 ...
cdrom/filelists_db | 6.0 MB 00:00 ...
--> Processing Dependency: xen-runtime = 4.2.1-2.el6 for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: yajl for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: python-lxml for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: libxenstore.so.3.0()(64bit) for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: libxenguest.so.4.2()(64bit) for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: libxenctrl.so.4.2()(64bit) for package: xen-4.2.1-2.el6.x86_64
--> Running transaction check
---> Package python-lxml.x86_64 0:2.2.3-1.1.el6 will be installed
---> Package xen-libs.x86_64 0:4.2.1-2.el6 will be installed
--> Processing Dependency: xen-licenses for package: xen-libs-4.2.1-2.el6.x86_64
---> Package xen-runtime.x86_64 0:4.2.1-2.el6 will be installed
--> Processing Dependency: xen-hypervisor-abi = 4.2 for package: xen-runtime-4.2.1-2.el6.x86_64
--> Processing Dependency: /usr/bin/qemu-img for package: xen-runtime-4.2.1-2.el6.x86_64
--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: xen-runtime-4.2.1-2.el6.x86_64
---> Package yajl.x86_64 0:1.0.7-3.el6 will be installed
--> Running transaction check
---> Package SDL.x86_64 0:1.2.14-3.el6 will be installed
---> Package qemu-img.x86_64 2:0.12.1.2-2.445.el6 will be installed
--> Processing Dependency: libusbredirparser.so.1()(64bit) for package: 2:qemu-img-0.12.1.2-2.445.el6.x86_64
--> Processing Dependency: libgfxdr.so.0()(64bit) for package: 2:qemu-img-0.12.1.2-2.445.el6.x86_64
--> Processing Dependency: libgfrpc.so.0()(64bit) for package: 2:qemu-img-0.12.1.2-2.445.el6.x86_64
--> Processing Dependency: libgfapi.so.0()(64bit) for package: 2:qemu-img-0.12.1.2-2.445.el6.x86_64
---> Package xen-hypervisor.x86_64 0:4.2.1-2.el6 will be installed
---> Package xen-licenses.x86_64 0:4.2.1-2.el6 will be installed
--> Running transaction check
---> Package glusterfs-api.x86_64 0:3.6.0.28-2.el6 will be installed
--> Processing Dependency: glusterfs = 3.6.0.28-2.el6 for package: glusterfs-api-3.6.0.28-2.el6.x86_64
---> Package glusterfs-libs.x86_64 0:3.6.0.28-2.el6 will be installed
---> Package usbredir.x86_64 0:0.5.1-1.el6 will be installed
--> Running transaction check
---> Package glusterfs.x86_64 0:3.6.0.28-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
xen x86_64 4.2.1-2.el6 base-xen 1.0 M
Installing for dependencies:
SDL x86_64 1.2.14-3.el6 cdrom 193 k
glusterfs x86_64 3.6.0.28-2.el6 cdrom 1.3 M
glusterfs-api x86_64 3.6.0.28-2.el6 cdrom 56 k
glusterfs-libs x86_64 3.6.0.28-2.el6 cdrom 263 k
python-lxml x86_64 2.2.3-1.1.el6 cdrom 2.0 M
qemu-img x86_64 2:0.12.1.2-2.445.el6 cdrom 793 k
usbredir x86_64 0.5.1-1.el6 cdrom 40 k
xen-hypervisor x86_64 4.2.1-2.el6 base-xen 4.3 M
xen-libs x86_64 4.2.1-2.el6 base-xen 346 k
xen-licenses x86_64 4.2.1-2.el6 base-xen 46 k
xen-runtime x86_64 4.2.1-2.el6 base-xen 5.7 M
yajl x86_64 1.0.7-3.el6 cdrom 27 k

Transaction Summary
====================================================================================================================================
Install 13 Package(s)

Total download size: 16 M
Installed size: 58 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total 45 MB/s | 16 MB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Public key for glusterfs-3.6.0.28-2.el6.x86_64.rpm is not installed
[[email protected] repodata]#

在这里,我将ftp xen yum的机器地址改为172.16.249.22
下面的测试机IP为172.16.249.251

[[email protected] xen1]# ssh [email protected]
[email protected]‘s password:
Last login: Sat Apr 11 03:14:58 2015 from 172.16.249.22
[[email protected] ~]# mount /dev/cdrom1 /mnt/dvd6.6
[[email protected] ~]# vim /etc/yum.repos.d/172.16.249.22.repo

[basetest]
name=172.16.249.22.file
baseurl=ftp://172.16.249.22/pub/xen1
gpgcheck=0
enabed=1

[dvd6.6]
name=centos6.6
baseurl=file:///mnt/dvd6.6/
gpgcheck=0
enabed=1

[email protected] ~]# yum list all xen*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Available Packages
xen.x86_64 4.2.1-2.el6 basetest
xen-debuginfo.x86_64 4.2.1-2.el6 basetest
xen-devel.x86_64 4.2.1-2.el6 basetest
xen-doc.x86_64 4.2.1-2.el6 basetest
xen-hypervisor.x86_64 4.2.1-2.el6 basetest
xen-libs.x86_64 4.2.1-2.el6 basetest
xen-licenses.x86_64 4.2.1-2.el6 basetest
xen-ocaml.x86_64 4.2.1-2.el6 basetest
xen-ocaml-devel.x86_64 4.2.1-2.el6 basetest
xen-runtime.x86_64 4.2.1-2.el6 basetest
[[email protected] ~]#

[[email protected] ~]# yum install xen
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package xen.x86_64 0:4.2.1-2.el6 will be installed
--> Processing Dependency: xen-runtime = 4.2.1-2.el6 for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: python-lxml for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: libxenstore.so.3.0()(64bit) for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: libxenguest.so.4.2()(64bit) for package: xen-4.2.1-2.el6.x86_64
--> Processing Dependency: libxenctrl.so.4.2()(64bit) for package: xen-4.2.1-2.el6.x86_64
--> Running transaction check
---> Package python-lxml.x86_64 0:2.2.3-1.1.el6 will be installed
---> Package xen-libs.x86_64 0:4.2.1-2.el6 will be installed
--> Processing Dependency: xen-licenses for package: xen-libs-4.2.1-2.el6.x86_64
---> Package xen-runtime.x86_64 0:4.2.1-2.el6 will be installed
--> Processing Dependency: xen-hypervisor-abi = 4.2 for package: xen-runtime-4.2.1-2.el6.x86_64
--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: xen-runtime-4.2.1-2.el6.x86_64
--> Running transaction check
---> Package SDL.x86_64 0:1.2.14-3.el6 will be installed
---> Package xen-hypervisor.x86_64 0:4.2.1-2.el6 will be installed
---> Package xen-licenses.x86_64 0:4.2.1-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================
Installing:
xen x86_64 4.2.1-2.el6 basetest 1.0 M
Installing for dependencies:
SDL x86_64 1.2.14-3.el6 dvd6.6 193 k
python-lxml x86_64 2.2.3-1.1.el6 dvd6.6 2.0 M
xen-hypervisor x86_64 4.2.1-2.el6 basetest 4.3 M
xen-libs x86_64 4.2.1-2.el6 basetest 346 k
xen-licenses x86_64 4.2.1-2.el6 basetest 46 k
xen-runtime x86_64 4.2.1-2.el6 basetest 5.7 M

Transaction Summary
=====================================================================================================================================================
Install 7 Package(s)

Total download size: 14 M
Installed size: 51 M
Is this ok [y/N]:
vsftpd yum仓库搭建完成!

时间: 2024-10-09 12:40:42

vsftpd-本地yum仓库搭建介绍的相关文章

Firewalld共享上网及本地yum仓库搭建

1.firewalld共享上网 1.服务端操作(有外网的服务器) 1.开启防火墙并加入开机自启动 [[email protected] ~]# systemctl start firewalld [[email protected] ~]# systemctl enable firewalld 2.移除默认所有人能访问ssh的规则 [[email protected] ~]# firewall-cmd --remove-service=ssh --permanent 3.添加只允许10.0.0.

本地Yum仓库搭建部署

本地yum仓库搭建: 系统:Centos6.5 去阿里镜像下载Centos6的yum源,安装系统eple-release源: #wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo #yum install epel-release -y 安装nginx服务和createrepo 创建yum仓库的命令: #yum install nginx -y # yum install c

本地YUM仓库搭建实战

YUM主要用于自动安装.升级rpm软件包,它能自动查找并解决rpm包之间的依赖关系.要成功的使用YUM工具安装更新软件或系统,就需要有一个包含各种rpm软件包的repository(软件仓库),这个软件仓库我们习惯称为yum源.网络上有大量的yum源,但由于受到网络环境的限制,导致软件安装耗时过长甚至失败.特别是当有大量服务器大量软件包需要安装时,缓慢的进度条令人难以忍受.因此我们在优化系统时,都会更换国内的源. 相比较而言,本地YUM源服务器最大优点是局域网的快速网络连接和稳定性.有了局域网中

RedHat6.7 Linux本地yum仓库搭建

RedHat6.7 yum本地仓库搭建 准备工作: 1.RedHat6.7光盘 2.挂载光盘: 插入光盘并确保系统能识别光盘 光盘设备默认在/dev/cdrom下 # ls /dev/cdrom 如果没有找到光盘----查找光盘 # ls -l /dev | grep cdrom 1)触发挂载 Ls /misc/cd 2)手动挂载 mkdir /my-yong      在跟下面创建一个my-yong目录 mount /dev/cdrom /my-yong   挂载光盘到my-yong目录下,m

解决安装rpm包依赖关系的烦恼 - yum工具介绍及本地源配置方法

版权声明:本文发布于http://www.cnblogs.com/yumiko/,版权由Yumiko_sunny所有,欢迎转载.转载时,请在文章明显位置注明原文链接.若在未经作者同意的情况下,将本文内容用于商业用途,将保留追究其法律责任的权利.如果有问题,请以邮箱方式联系作者([email protected]). 1.背景概述 在实际生产环境下,对于在linux系统上安装rpm包,主要面临两个实际的问题1)安装rpm包过程中,不断涌现的依赖关系问题,导致需要按照提示或者查询资料,手工安装更多的

在linux上搭建本地yum源

准备yum仓库的光盘镜像IOS文件: 设置光驱加载本地磁盘的yum仓库的光盘镜像文件: 在linux的命令行输入setup命令打开设置窗口,选择"System Service": 在打开的系统服务列表中找到httpd服务,确保它处于选中状态: 然后重启机器,使httpd服务启动生效,待虚拟机启动后,在浏览器中访问此机器的主机名,比如我的这台机器的主机名为hadoop01,那么就在浏览器中访问http://hadoop01/,如果出现如下界面,说明httpd服务成功启动: 然后使用SSH

软件包管理之YUM仓库搭建

上一篇介绍了YUM的基本安装和卸载等功能的使用,这里就介绍一下如何搭建本地YUM仓库以及系统刚安装完成YUM仓库的配置信息. YUM仓库:存储了众多RPM包以及包的相关元数据(repodata)的文件服务器 可做YUM仓库的类型:http.ftp.nfs.file(本地) 先来看下yum客户端的配置文件: 它的配置文件由两部分组成:主配置文件和其他配置文件 主配置文件: 这个文中定义了使用yum安装时的缓存文件保存的目录,是否保留安装完成后rpm包,日志文件路径,是否启用插件,是否校验包的完整性

[转载]CentOS 7 创建本地YUM源

本文中的“本地YUM源”包括三种类型:一是直接使用CentOS光盘作为本地yum源,优点是简单便捷,缺点是光盘软件包可能不完整(centos 7 Everything 总共才6.57G):二是同步CentOS官方源到本地(相当于创建了一个公共镜像),优点是最靠谱,缺点是占空间费流量:三是创建完全自定义的本地源,优点是灵活性最大,缺点是只是作为其他源的补充. 一.使用CentOS光盘作为本地yum源 (1) 实体机上直接放入光盘(2) VMware Workstation 虚拟机:虚拟机-->可移

基于redhat6.4的本地yum和ftp yum源配置

 这个是本人在项目中配置的过程,绝对没有问题: 在程序更新时有时会发现缺少部分安装包,而通过RPM方式安装又会出现缺少依赖包导致各种问题.但是通过yum的方式进行安装,它有自己的数据字典,能自动计算各个包之间的依赖关系,对依赖包自动安装,以下介绍本地yum源和ftp源的两中配置方式. 配置本地yum源 放入光盘或者上传iso镜像: mount到指定的目录下:mount /dev/sro /mnt:(可以使用mount命令来查看所处的挂载区) 如果是镜像文件,可以使用mount XXX.iso