YUM
(Yellow dog Updater Modifed) Server
The Yellowdog
Updater, Modified (YUM) is an open-source command-line package-management utility
for RPM-compatible Linuxoperating systems and has been released under
the GNU General Public
License.
It was developed by Seth Vidal and a group of volunteer programmersYUM stands
for Yellow dog Updater, Modified because it is based on YUP,
the Yellow dog Updater. Yellow Dog is a version of Linux for the
Power Architecture hardware. YUP, and later YUM, were written by the Linux
community as a way to maintain an RPM-based system. If a package
installation or upgrade request is made and requires the installation or
upgrade of additional packages, YUM can list these dependencies and prompt
the user to install or upgrade them.
YUM
Server Requirements
1. vsftpd package to install rpm
packages within a network.
2. Dump location to copy the
contents from a RHEL CD or DVD ie.
/var/ftp/pub
3. deltarpm, python-deltarpm and
createrepo packages
4. Repository file.
Configuring
YUM Server.
[root@server1 ~]# cd
/media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages/
[root@server1 Packages]# rpm -ivh
vsftpd-2.2.2-6.el6.i686.rpm
warning:
vsftpd-2.2.2-6.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51:
NOKEY
Preparing... ###########################################
[100%]
1:vsftpd ###########################################
[100%]
[root@server1 Packages]# service
vsftpd restart
Shutting down vsftpd: [FAILED]
Starting vsftpd for vsftpd: [ OK ]
[root@server1 Packages]#
chkconfig --level 35 vsftpd on
[root@server1 Packages]#
cd/var/ftp/pub/
[root@server1 pub]# ls
[root@server1 Packages]# rpm -ivh
createrepo-0.9.8-4.el6.noarch.rpm
warning:
createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID
fd431d51: NOKEY
error: Failed dependencies:
deltarpm is needed by
createrepo-0.9.8-4.el6.noarch
python-deltarpm is needed by
createrepo-0.9.8-4.el6.noarch
[root@server1 Packages]# rpm -ivh
deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning:
deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key
ID fd431d51: NOKEY
Preparing...
########################################### [100%]
1:deltarpm ###########################################
[100%]
[root@server1 Packages]# rpm -ivh
python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning:
python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256
Signature, key ID fd431d51: NOKEY
Preparing...
########################################## [100%]
1:python-deltarpm ###########################################
[100%]
[root@server1 Packages]# rpm-ivh
createrepo-0.9.8-4.el6.noarch.rpm
warning:
createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID
fd431d51: NOKEY
Preparing... ###########################################
[100%]
1:createrepo ########################################### [100%]
[root@server1 Packages]# cd ..
[root@server1 Server]# cd ..
[root@server1 RHEL_6.0 i386 Disc
1]# cd ..
[root@server1 pub]#
cd /media/RHEL_6.0\ i386\ Disc\ 1
[root@server1 RHEL_6.0\ i386\
Disc\ 1]# cp -av * /var/ftp/pub
[root@server1 media]# createrepo
/var/ftp/pub/Server
[root@server1 media]#
system-config-network
Select Device configuration and press Enter
Select New Device and press Enter
Select Ethernet and press Enter
Now add following details in it
Name eth2
Device eth2
Use DHCP []
Static IP 200.0.0.100
Netmask 255.255.255.0
Default gateway IP
Primary DNS Server
Secondary DNS Server
Select ok and pressEnter
Select Save and press Enter
Select Save&Quit and press Enter
[root@server1 media]# service network restart
Shutting down loopback
interface: [ OK ]
Bringing up loopback
interface:
[ OK ]
Shutting down eth2 interface: [ OK ]
Bringing up eth2 interface: [
OK ]
[root@server1 media]# cd /etc/yum.repos.d/
[root@server1 yum.repos.d]# ll
total 0
[root@server1 yum.repos.d]# vi Server.repo
[Server]
name=myserver
baseurl=ftp://200.0.0.100/pub/Server
enabled=1
gpgcheck=0
:wq!
[root@server1 yum.repos.d]#
system-config-firewall
click on close
click on Disable
click on Apply
click on yes
[root@server1 yum.repos.d]#
sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
[root@server1 yum.repos.d]#
lokkit --selinux=disabled
[root@server1 yum.repos.d]#
sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: disabled
Policy version: 24
Policy from config file: targeted
[root@server1 yum.repos.d]# init
6
[root@server1 Desktop]# cd
[root@server1 ~]#sestatus
SELinux status: disabled
[root@server1 ~]# yum list dhcp*
Loaded plugins:
refresh-packagekit, rhnplugin
This system is not registered
with RHN.
RHN support will be disabled.
Server | 1.3 kB 00:00
Server/primary | 1.3
MB 00:00
Server
2679/2679
Available Packages
dhcp.i686 12:4.1.1-12.P1.el6 Server
[root@server1 ~]# yum install
dhcp*
Loaded plugins:
refresh-packagekit, rhnplugin
This system is not registered
with RHN.
RHN support will be disabled.
Server
| 1.3
kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dhcp.i686
12:4.1.1-12.P1.el6 set to be updated
--> Finished Dependency
Resolution
Dependencies Resolved
========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
dhcp i686 12:4.1.1-12.P1.el6 Server 868 k
Transaction Summary
========================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 868 k
Installed size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
dhcp-4.1.1-12.P1.el6.i686.rpm | 868 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 12:dhcp-4.1.1-12.P1.el6.i686
1/1
Installed:
dhcp.i686 12:4.1.1-12.P1.el6
Complete!
[root@server1 ~]# yumlistdhcp*
Loaded plugins:
refresh-packagekit, rhnplugin
This system is not registered
with RHN.
RHN support will be disabled.
Server | 1.3 kB 00:00
Installed Packages
dhcp.i686 12:4.1.1-12.P1.el6 @Server
[root@server1 ~]# yum removedhcp*
Loaded plugins:
refresh-packagekit, rhnplugin
This system is not registered
with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package dhcp.i686
12:4.1.1-12.P1.el6 set to be erased
--> Finished Dependency
Resolution
Dependencies Resolved
========================================================================
Package Arch Version Repository Size
========================================================================
Removing:
dhcp i686 12:4.1.1-12.P1.el6 @Server 2.1 M
Transaction Summary
========================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : 12:dhcp-4.1.1-12.P1.el6.i686 1/1
Removed:
dhcp.i686 12:4.1.1-12.P1.el6
Complete!
[root@server1 ~]# yum list dhcp*
Loaded plugins:
refresh-packagekit, rhnplugin
This system is not registered
with RHN.
RHN support will be disabled.
Server
| 1.3 kB 00:00
Available Packages
dhcp.i686
12:4.1.1-12.P1.el6
Server
Configuring YUM Client
[root@client~]#
system-config-network
Select Device configuration and press Enter
Select New Device and press Enter
Select Ethernet and press Enter
Now add following details in it
Name eth2
Device eth2
Use DHCP []
Static IP 200.0.0.101
Netmask 255.255.255.0
Default gateway IP
Primary DNS Server
Secondary DNS Server
Select ok and press Enter
Select Save and press Enter
Select Save&Quit and press Enter
[root@client~]# service network restart
Shutting down loopback
interface: [ OK ]
Bringing up loopback
interface:
[ OK ]
Shutting down eth2 interface: [ OK ]
Bringing up eth2 interface: [
OK ]
[root@client~]# cd
/etc/yum.repos.d/
[root@client yum.repos.d]# ll
total 0
[root@clientyum.repos.d]# vi Client.repo
[Client]
name=myclient
baseurl=ftp://200.0.0.100/pub/Server
enabled=1
gpgcheck=0
:wq!
[root@client yum.repos.d]#
system-config-firewall
click on close
click on Disable
click on Apply
click on yes
[root@clientyum.repos.d]#
sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
[root@client yum.repos.d]# lokkit
--selinux=disabled
[root@clientyum.repos.d]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: disabled
Policy version: 24
Policy from config file: targeted
[root@client yum.repos.d]# init 6
[root@client Desktop]# cd
[root@client ~]#sestatus
SELinux status: disabled
[root@client ~]#
yum install dhcp*
Loaded plugins:
refresh-packagekit, rhnplugin
This system is not registered
with RHN.
RHN support will be disabled.
Server
| 1.3 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dhcp.i686
12:4.1.1-12.P1.el6 set to be updated
--> Finished Dependency
Resolution
Dependencies Resolved
========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
dhcp i686 12:4.1.1-12.P1.el6 Server 868 k
Transaction Summary
========================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 868 k
Installed size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
dhcp-4.1.1-12.P1.el6.i686.rpm
| 868 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 12:dhcp-4.1.1-12.P1.el6.i686 1/1
Installed:
dhcp.i686 12:4.1.1-12.P1.el6
Complete!
Note:- Using Yum you can install list remove and update package automatically without fear of dependence
Packages.......
It's very easy to find out any topic on net as compared to textbooks, as I found this article at this website.
ReplyDeletemyxtrahealth.com |
It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.
ReplyDeleteresidenttechnologies.com |
Just wanted to give a quick shout out and say that I genuinely enjoy reading your articles.
ReplyDelete3ghomezone.com |
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.
ReplyDeleteautoreisenzug.com |
Thanks for any other informative site. The place else could I get that kind of info written in such a perfect manner? I have a mission that I am simply now running on, and I've been at the look out for such info.
ReplyDeleteboknowsautorepair |
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog. Thanks for sharing such a great content with us.
ReplyDelete3ann-house.com |
All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks
ReplyDeleteagencyeden |
Excellent. one of the best articles I have every read. This is the information which I have been searching. Great information.
ReplyDeleteOrganic Home |
It is very helpful for all the people on the web.I wanted to say that it's nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere.
ReplyDeleteFood Congress 2013 |
Very nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed surfing around your blog posts. After all I will be subscribing to your feed and I hope you write again soon!
ReplyDeleteCareer & Jobs
true religion jeans
ReplyDeletembt outlet
fila shoes outlet
true religion outlet online
nike sb stefan janoski
curry 3 shoes
ralph lauren polo outlet
longchamp outlet
nike air max 90
ray ban glasses
2017.3.2chenlixiang
michaelkors outlet
ReplyDeleteflip flops
adidas football boots
hollister clothing
air max
canada goose
ugg boots outlet
cheap nfl jerseys
mlb jerseys
ugg australia
chenlina20171120