Establishment of Centos 6 Yum Local Warehouse

Source: Internet
Author: User
Tags gpg centos backup

[root@zh888 yum.repos.d]# LS//First back up the YUM.REPOS.D directory file to backup and then create the vi Yum.repo file.

Backup Yum.repo

[root@zh888 yum.repos.d]# Cat Yum.repo

[zh888] First line: Label for Yum Source

name=zh888 second line: The name of the Yum source

Baseurl=file:///mnt Third line: Specify the location and path of the Yum source

Enable=1 Line Fourth: This is like a power switch, which is yum switch, 1 is available, equal to 0 o'clock is not available

Gpgcheck=1 Line Fifth: Digital signature check, no digital signature does not allow installation, equal to 0 o'clock no digital signature check.

Gpgfile=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6 line sixth: Specify Red Hat release digital signature public key file

[root@zh888 yum.repos.d]# mount/dev/cdrom/mnt//mount ISO file to/mnt directory

[root@zh888 yum.repos.d]# ls-l/dev/cdrom

lrwxrwxrwx 1 root 3 Apr 18:16/dev/cdrom-> SR//In fact, CDROM is only a soft connection to the SR device.

Mount:block Device/dev/sr0 is write-protected, mounting read-only

[root@zh888 yum.repos.d]# Ls/mnt

Centos_buildtag Packages rpm-gpg-key-centos-security-6

EULA release-notes-en-us.html rpm-gpg-key-centos-testing-6

The GPL repodata TRANS. TBL

Images rpm-gpg-key-centos-6

Isolinux rpm-gpg-key-centos-debug-6

[root@zh888 yum.repos.d]# mount//View all mount information

/dev/sda3 on/type ext4 (rw)

Proc On/proc type proc (rw)

Sysfs On/sys type SYSFS (rw)

Devpts on/dev/pts type devpts (rw,gid=5,mode=620)

Tmpfs ON/DEV/SHM type TMPFS (rw)

/DEV/SDA1 on/boot type EXT4 (rw)

None On/proc/sys/fs/binfmt_misc type Binfmt_misc (rw)

/dev/sr0 on/mnt type iso9660 (RO)//Here is a description of the disc ISO has been mounted

[root@zh888 yum.repos.d]# yum-y install vsftpd//install vsftpd FTP software

Loaded Plugins:fastestmirror

Loading mirror speeds from cached hostfile

zh888 | 3.7 KB 00:00 ...

Setting up Install Process

Resolving dependencies

--> Running Transaction Check

---> Package vsftpd.i686 0:2.2.2-6.el6 set to be updated

--> finished Dependency resolution

Dependencies resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

VSFTPD i686 2.2.2-6.el6 zh888 k

Transaction Summary

================================================================================

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.