YUM REPOSITORY #LINUX
Yum Repository
Example: CentOS 7
1)
Log in as root or superuser ($ prompt =
Normal user; # prompt = Super user)
2)
# df
(df= disk free
or disk file system)
3)
# cd media path/Packages(cd=change directory; media path is the red box in the pic)
Note: Prefer to type the path while (cd) changing directory rather copy paste
4) # rpm -ivh vsftpd*
(rpm=redhat package manager; vsftpd=very secure file transfer protocol daemon)
5) # rpm -ivh delta*
6) # rpm -ivh python-delta*
7) # rpm -ivh createrepo*
(-ivh stands for install, verbose, hash; # man rpm (this gives you complete information about those options))
8) # cd /
9) # mkdir repo
(mkdir=make directory)
10) # cp -rvf /media path/Packages /repo
(cp=copy; -rvf stands for recursive, verbose, force)
11) #
createrepo –database /repo/Packages
12) #
cp -rvf /media path/RPM-GPG-KEY-yourOS /repo
13) #
vi /etc/yum.repos.d/basic.repo (vi=visual instrument- a text editor)
Press [i] to insert text
[basic]name=my local repo
enable=1
baseurl=file:///repo/Packages
gpgcheck=0
gpgkey=file:///repo/ RPM-GPG-KEY-yourOS
14) # yum repolist
(Yum= yellowdog updater modifier)
15) # cd /tmp
16) # wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
17) # ls *.rpm
(ls=list)
18) #
yum install -y ‘above command output’
(-y stands for
assume yes)19) #yum repolist
Comments
Post a Comment