installing packages in linux

Upload: nupur-agarwal

Post on 05-Apr-2018

243 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 Installing Packages in Linux

    1/17

    Department of Information Technology

    Academic Session: 2011-12(Odd)

    Summer / Industrial TrainingReport

    Babu Banarasi Das

    National Institute of Technology & ManagementLucknow

  • 8/2/2019 Installing Packages in Linux

    2/17

    Department of Information Technology

    Academic Session: 2011 - 12 (Odd)

    IT Final Year (Seventh Semester)

    Industrial Training Report

    Name of Student: Nupur Agarwal

    University Roll Number: 0805413055

    Year: Final

    Semester: Seventh

    Place of Training: HPES, Lucknow

    Name of Guide: Dr. Anil Singh

    Training Duration: 10th June-23rdJuly11

    Babu Banarasi DasNational Institute of Technology & Management

  • 8/2/2019 Installing Packages in Linux

    3/17

    Babu Banarasi DasNational Institute Of Technology And Management

    Lucknow

    Installing Package In Linux via YUM

    YELLOWDOG UPDATER

    MODIFIED

  • 8/2/2019 Installing Packages in Linux

    4/17

    ACKNOWLEDGEMENT

    It is my great pleasure to express my profound gratitude to our trainer Dr. Anil

    Singh for suggesting us the topic of the project, and also providing us with the

    invaluable suggestions and guidance throughout the project work.

    I would also like to express our sincere thanks to HPES faculty, friends, parents

    and God for their priceless support.

    Thankfully,

    Nupur Agarwal

  • 8/2/2019 Installing Packages in Linux

    5/17

    TABLE OF CONTENTS

    1. ABOUT THE YUM SERVER2. WHY USE YUM SERVER?3. ADVANTAGES OF YUM SERVER4. INSTALLING YUM SERVER5. OUTPUT6. CONCLUSION7.BIBLIOGRAPHY

  • 8/2/2019 Installing Packages in Linux

    6/17

    INSTALLING PACKAGES IN LINUX

    VIA YUM SERVER

  • 8/2/2019 Installing Packages in Linux

    7/17

    ABOUT THE YUM SERVER

    The Yellowdog Updater,Modified(YUM) is an open source command-line package-

    management utility for RPM-compatible Linux operating systems and has been released under the

    GNU General Public License. It was developed by Seth Vidal and a group of volunteer

    programmers.Though yum has a command-line interface,several other tools provide graphical user

    interfaces to yum functionality.

    WHY USE YUM?

    The Yellowdog Updater,Modified YUM is an automatic updater and package

    installer/remover for rpm- based systems. It automatically computes dependencies and figures out

    what things should occur in order to safely install, remove and update rpm packages. Yum also

    efficiently and easily retrieves information on any package installed or available in a repository to

    the installer. Yum makes it easier to maintain groups of machines without having to manually update

    each one using rpm or other tools. Yum can manage package groups, manage package groups,

    multiple repositories, fallback repositories and more to permit centralized package management

    performed by just one or two individuals to scale over an entire organization.

    Other features of the YUM package manager include:

    Simple interface. Multiple repositories. Simpleconfig file. Fast operation. RPM-consistent behavior. comps.xml group support, including multiple repository groups.

    http://searchenterprisedesktop.techtarget.com/definition/CONFIGSYShttp://searchenterprisedesktop.techtarget.com/definition/CONFIGSYShttp://searchenterprisedesktop.techtarget.com/definition/CONFIGSYShttp://searchenterprisedesktop.techtarget.com/definition/CONFIGSYS
  • 8/2/2019 Installing Packages in Linux

    8/17

    ADVANTAGES OF USING YUM SERVER

    Automatic resolution of software dependencies

    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.

    Command-line and graphical versions

    The command-line version can be run on a system with a minimal number of software packages. The

    graphical versions offer ease-of-use and a user-friendly graphical interface to software management.

    Multiple software locations at one time

    YUM can be configured to look for software packages in more than one location at a time.

    Ability to specify particular software versions or architectures

    Software locations accessible by YUM can contain multiple versions of the same RPM package and

    different builds for different architectures such as one for i686 and one for x86_64. yum can easily

    check the appropriate version and download it.

  • 8/2/2019 Installing Packages in Linux

    9/17

    INSTALLING YUM SERVER

    To create a YUM server in Linux

    Step 1:- Create a directory named repo mkdir /repo

    Mount it to any disk which have more space as comparison to root mount /dev/sda5

    /repo

    Step 2 :-Insert DVD of Rhel-5 and Mount CD ROM mount /dev/cdrom /mnt

    Step 3 :-Copy directoryServer, Cluster, ClusterStorage, VT from DVD/CD of Rhel-5 cp RvfServer ClusterStorage Cluster VT /repo

  • 8/2/2019 Installing Packages in Linux

    10/17

    Copy Server

    Copy ClusterStorage And Cluster

    Copy VT

  • 8/2/2019 Installing Packages in Linux

    11/17

    Step 4 :- Delete repodata named directory from all the four directories in /repo i.e., Server,

    ClusterStorage, Cluster, and VT

    (a)rmrf Serverrepodata

    (b)rmrf Cluster/repodata

    (c)rmrf ClusterStorage/repodata

    (d)rmrf VT/repodata

    Step 5 :-Now create a file named base.repo vi /etc/yum.repos.d/base.repo

  • 8/2/2019 Installing Packages in Linux

    12/17

    Step 6 :-Edit a file named rhel-debuginfo.repo vi /etc/yum.repos.d/rhel-debuginfo.repo

    In this file enabled & gpgcheck must be 0

    Step 7 :-Now, edit this file vi /etc/yum/pluginconf.d/rhnplugin.conf

    Here also enabled & gpgcheck must be 0

    Step 8 :-Now, edit last file vi /etc/yum.conf

    Here also enabled & gpgcheck must be 0

  • 8/2/2019 Installing Packages in Linux

    13/17

    Step 9 :-Install standalone service rpm ivh /mnt/Server/createrepo*.rpm

    Step 10 :- Now we have to create repository

    (a)createrepog /mnt/Server/repodata/comps-rhel5-server-core.xml /repo/Server

    (b)createrepog /mnt/ClusterStorage/repodata/comps-rhel5-cluster-st.xml

    /repo/ClusterStorage

    (c)createrepog /mnt/Cluster/repodata/comps-rhel5-cluster.xml /repo/Cluster

    (d)createrepog /mnt/VT/repodata/comps-rhel5-vt.xml /repo/VT

    Step 11 :-Now clean the process yum clean all

  • 8/2/2019 Installing Packages in Linux

    14/17

    Step 12 :-Now check the list all file in yum serveryum list all

    Step 13 :- Now install the package from commandyum install

  • 8/2/2019 Installing Packages in Linux

    15/17

    OUTPUT

    After installing YUM server in linux .we can easily install any package.

    Basic yum usage

    On client side, to Search apackage, use the following syntax yum search

    [root@RHEL03 Server]# yum search httpd

    On client side, to import the GPG key, use the following syntax rpm -import

    root@RHEL03 Server]# rpm --import http://192.168.1.101/server/RPM-GPG-KEY-redhat-

    release

    On client side, to install apackage, use the following syntax yum install . YUM

    will find out if there is any dependency, and install that dependency before the installation. The

    following command can be used to install the httpd (Apache Web Server) package.

    [root@RHEL03 Server]# yum install httpd

    To remove an installedpackage, use the following syntax yum remove .

    [root@RHEL03 Server]# yum remove httpd

  • 8/2/2019 Installing Packages in Linux

    16/17

    CONCLUSION

    The whole project is all about installing packages in linux via YUM server (yellowdog updater

    modified). Yum is an automatic updater and package installer/remover for RPM systems. It

    automatically computes dependencies and figures out what things should occur to install packages. It

    makes it easier to maintain groups of machines without having to manually update each one using

    rpm.

    Yum server is providing a very user friendly working system in linux. We can install packages from

    other methods also but installing packages after setupof Yum server make it more easy.Yum is very

    conservative. It will never perform the equivalent of a -force install. It was designed, as noted above,

    by systems administrators to facilitate the consistent and scalable maintenance of systems, and thus

    will balk at any action that might cause your system to enter ``package hell'' (a state of packageinconsistency). If yum refuses to do something, then the thing it refuses to do is probably a bad idea

    for most people to think about. If you are skilled enough to know that it is really OK on YOUR

    system, you are skilled enough to use rpm itself to override yum.

  • 8/2/2019 Installing Packages in Linux

    17/17

    BIBLIOGRAPHY

    www.linux.com

    www.yellowdoglinux.com/support/solutions/ydl_6.x/yum.shtml

    www.omnisecu.com/gnu-linux/redhat-certified-engineer-rhce/introduction-to-yum-package-manager.htm

    yum.baseurl.org/

    prefetch.net/articles/yum.html

    http://www.linux.com/http://www.linux.com/http://www.yellowdoglinux.com/support/solutions/ydl_6.x/yum.shtmlhttp://www.yellowdoglinux.com/support/solutions/ydl_6.x/yum.shtmlhttp://www.omnisecu.com/gnu-linux/redhat-certified-engineer-rhce/introduction-to-yum-package-manager.htmhttp://www.omnisecu.com/gnu-linux/redhat-certified-engineer-rhce/introduction-to-yum-package-manager.htmhttp://yum.baseurl.org/http://yum.baseurl.org/http://prefetch.net/articles/yum.htmlhttp://prefetch.net/articles/yum.htmlhttp://prefetch.net/articles/yum.htmlhttp://yum.baseurl.org/http://www.omnisecu.com/gnu-linux/redhat-certified-engineer-rhce/introduction-to-yum-package-manager.htmhttp://www.yellowdoglinux.com/support/solutions/ydl_6.x/yum.shtmlhttp://www.linux.com/