UNIX/Redhat

repository ftp주소로 추가 + 영문버전

99iberty 2013. 4. 15. 16:24

 

http://www.expertslogin.com/linuxhwto/how-to-create-ftp-yum-repository-in-linux/

 

YUM as we know it a Yellow Dog Modifier is the Red Hat package manager that is able to query for information about available packages, fetch packages from repositories, install and uninstall them, and update an entire system to the latest available version. Yum performs automatic dependency resolution on packages you are updating, installing, or removing, and thus is able to automatically determine, fetch, and install all available dependent packages.

Yum can be configured with new, additional repositories, or package sources, and also provides many plug-ins which enhance and extend its capabilities. Yum is able to perform many of the same tasks that RPM can; additionally, many of the command line options are similar. Yum enables easy and simple package management on a single machine or on groups of them.

Vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. vsftpd is a mature and trusted solution.

 

 

So here we have few steps to do

1. Install vsftpd server
2. Create repository with createrepo
3. Configure repository
4. Configure clients

Install vsftpd server

Insert RHEL 5 Installation DVD

# mkdir ~/Desktop/rhel_cd
# mount /dev/cdrom ~/Desktop/rhel_cd
# cd ~/Desktop/rhel_cd/Server
# rpm –ivh vsftpd*

Create repository with createrepo

# rpm –ivh createrepo*

Configure repository

# cd /var/ftp/pub/Server/repodata
# cp comps-rhel5-server-core.xml /var/ftp/pub/Server/
# cd /var/ftp/pub/Server
# createrepo -vg comps-rhel5-server-core.xml /var/ftp/pub/Server/
# service vsftpd start (Starting vsftpd services)
# chkconfig –add vsftpd ( making it persistent across all run levels)

Configure clients

Run following commands on clients

# vi /etc/yum.repos.d/yum_server.repo
Add:
[Server]
name=MY_SERVER
baseurl=ftp://192.168.2.100/pub/Server
gpgcheck=0

# vi /etc/vsftpd/vsftpd.conf
Set the following parameter (if not already set)
anonymous_enable = yes

# service vsftpd restart

NB : Yum provides secure package management by enabling GPG (Gnu Privacy Guard; also known as GnuPG) signature verification on GPG-signed packages to be turned on for all package repositories (i.e. package sources), or for individual repositories. When signature verification is enabled, Yum will refuse to install any packages not GPG-signed with the correct key for that repository. This means that you can trust that the RPM packages you download and install on your system are from a trusted source, such as Red Hat, and were not modified during transfer.

'UNIX > Redhat' 카테고리의 다른 글

xinetd / standalone   (0) 2013.06.12
14장 using apache  (0) 2013.06.12
리눅스 원격 레포지토리 설정 (ftp 사용)  (0) 2013.04.15
명령어 경로 알기  (0) 2012.12.05
12/08/29 10장   (0) 2012.08.29