YUM


LINUX + VISHAL

TO Install Yum Server With Vsftpd

1. install Rhel5 DVD in dvd drive,

2. install vaftpd and createrepos RPM find in DVD,

3. Run this command # service vsftpd restart,

4. copy all data packages in dvd are copy on /var/ftp/pub directory,

#mount /dev/dvd /mnt

#cp -r /mnt/* /var/ftp/pub

5. run createrepo command for create repository on /var/ftp/pub directory

#createrepo -v /var/ftp/pub (3min time)

6. now configure and edit yum.conf file

#vim /etc/yum.conf

[gpg]

name=your server name

baseurl=ftp://your ftp ip/pub

gpgcheck=0

enabled=1

:wq (save the file)

7. #service vsftpd restart

#chkconfig vsftpd on

8. chack the yum repo service

#yum list all

#yum clean all

#yum update all

#yum -y install vnc*

Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository

Simply type the following command as root user:

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

List new repo:

# yum repolist

Sample output:

Loading “skip-broken” plugin

Loading “fastestmirror” plugin

repo id              repo name                                                          status

addons             CentOS-5 – Addons                                          enabled

base                  CentOS-5 – Base                                                  enabled

epel                  Extra Packages for Enterprise Linux 5 -   enabled

extras             CentOS-5 – Extras                                                enabled

updates          CentOS-5 – Updates                                           enabled

Once installed use yum command to list, view and install the packages:
# yum search package-name
# yum install package-name

8 Responses to “YUM”

  1. Manish Soni June 16, 2010 at 7:24 am #

    You have made very good things and it is very helpfull.

    Thanks

    mps

  2. Milan Ramani November 11, 2010 at 6:50 am #

    Hi It’s Very Nice blog for Linux Admins as well as students who wish to learn linux ..
    Thanks.
    Milan

  3. pradeepkumarpandit January 22, 2011 at 7:50 am #

    thats good yum step wise configure ..god bless u ..

  4. hemanth August 21, 2013 at 12:11 pm #

    ur teaching is nice.but i want “how to configure yum server in centos 6.4″please help me and get me out this problem .

    • Vishal Vyas August 21, 2013 at 12:31 pm #

      mount /dev/dvd /mnt/
      cd /mnt/Packages/
      rpm -ivh vsftpd-2.2.2-11.el6_3.1.i686.rpm

      rpm -ivh libxml2-python-2.7.6-8.el6_3.4.i686.rpm
      rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm
      rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm

      rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm

      mkdir /var/ftp/pub/myrepo
      cp -ar /mnt/Packages/*.* /var/ftp/pub/myrepo/

      vi /etc/yum.repos.d/myrepo.conf

      [Myrepo]
      name=myrepo
      baseurl=file:///var/ftp/pub/myrepo
      gpgcheck=0
      enabled=1

      createrepo -v /var/ftp/pub/myrepo/

      yum clean all
      yum update

      • hemanth August 26, 2013 at 6:19 am #

        guruji this is very helpful for me.thanks for ur replay.

  5. income April 22, 2014 at 7:00 am #

    Hi there, I wish for to subscribe for this web site to
    take latest updates, so where can i do it please help out.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: