Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

YUM Server



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           
  add the following lines in it
[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                    
  add the following lines in it
[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.......







12 comments:

  1. It's very easy to find out any topic on net as compared to textbooks, as I found this article at this website. 
    myxtrahealth.com |

    ReplyDelete
  2. 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.
    residenttechnologies.com |

    ReplyDelete
  3. Just wanted to give a quick shout out and say that I genuinely enjoy reading your articles.
    3ghomezone.com |

    ReplyDelete
  4. 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.
    autoreisenzug.com |

    ReplyDelete
  5. 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.
    boknowsautorepair |

    ReplyDelete
  6. 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.
    3ann-house.com |

    ReplyDelete
  7. 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
    agencyeden |

    ReplyDelete
  8. Excellent. one of the best articles I have every read. This is the information which I have been searching. Great information.
    Organic Home |

    ReplyDelete
  9.  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.
    Food Congress 2013 |

    ReplyDelete
  10. 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!

    Career & Jobs

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X