Linux Tutorial - Installing Packages on Linux

Embed Size (px)

Citation preview

  • 7/30/2019 Linux Tutorial - Installing Packages on Linux

    1/1

    5/21/13 Linux Tutorial - Installing Packages on Linux

    linux.about.com/od/linux101/a/desktop12c.htm

    Linux

    Computing

    Share

    By Juergen Haas, About.com Guide

    Linux Tutorial: Packaging, Updating, and Installing3. Installing New Packages

    If a package is available on your Red Hat Linux or Fedora Core CDROM, there's an Add/Remove Applications application that is use ful. It is invoked via,

    Main Menu --> System Settings -->

    Add/Remove Applications

    It will ask you for the root password, and once that is provided, it will display all applications that may be installed. Once you have ticked the

    applications that you want installed, you just need to click "Update" to install. Change the discs as you are prompted, and once this is done, you will

    have the software installed.

    However, in the open source world where applications change quite often, and fixes are posted, this method might mean you get out-dated software.

    This is where too ls like yum and apt come into play.

    To search the yum database for a piece of software, you can invoke,

    # yum search xargs

    where xargs is an example of an application that needs to be installed. Yum will report if it finds xargs, and if its successful, performing,

    # yum install xargs

    will be all that is required. If xargs calls for any dependencies, it will be resolved automatically, and those packages get pulled in automatically too.

    This is similar w ith Debian and apt.

    # apt-cache search xargs

    # apt-get insta ll xargs

    If you want to install a downloaded RPM or DEB file manually, it can be performed like,

    # rpm -ivh xargs.rpm

    or

    # dpkg -i xargs.deb

    And if you're manually upgrading a package, use,

    # rpm -Uvh xargs.rpm

    The above command will upgrade the package if it is already insta lled o r install it if it is not. To perfrom an upgrade only if the package is curently

    installed, use,

    # rpm -Fvh xargs.rpm

    There are many more options to pass to the rpm, dpkg, yum, apt-get and apt-cache tools, and the best way to learn more, would be to read their

    manual pages. It is also worthy to note that apt-get is available for RPM-based systems, so versions for Red Hat Linux or Fedora Co re (or even SuSE

    or Mandrake) are available as a download from the Internet.

    ---------------------------------------

    You are reading

    Linux Tutorial: Packaging, Updating, and Installing

    1. Tarballs

    2. Keeping Up-To-Date

    3. Installing New Packages

    | Previous Tutorial | Lists of Tutorials | Next Tutorial |

    Enter email address

    Free Linux Newsletter!

    Discuss in my forum

    Sign Up

    Top Related Searches Red Hat Linux Open Source World Rpm Uvh Fedora Core Xargs Root Password

    http://linux.about.com/od/linux101/a/desktop12b.htmhttp://linux.about.com/od/linux101/a/desktop12c.htm?p=1http://search.about.com/r.htm?q=root%20passwordhttp://search.about.com/r.htm?q=xargshttp://search.about.com/r.htm?q=fedora%20corehttp://search.about.com/r.htm?q=rpm%20uvhhttp://search.about.com/r.htm?q=open%20source%20worldhttp://search.about.com/r.htm?q=red%20hat%20linuxhttp://forums.about.com/n/pfx/forum.aspx?nav=messages&webtag=ab-linuxhttp://linux.about.com/od/linux101/a/desktop13.htmhttp://linux.about.com/od/linux101/a/desktop.htmhttp://linux.about.com/od/linux101/a/desktop11.htmhttp://linux.about.com/od/linux101/a/desktop12c.htmhttp://linux.about.com/od/linux101/a/desktop12b.htmhttp://linux.about.com/od/linux101/a/desktop12a.htmhttp://linux.about.com/od/linux101/a/desktop12.htmhttp://linux.about.com/bio/Juergen-Haas-9193.htmhttp://linux.about.com/od/linux101/a/desktop12c.htm?p=1http://linux.about.com/gi/pages/shareurl.htm?PG=http%3a%2f%2flinux%2eabout%2ecom%2fod%2flinux101%2fa%2fdesktop12c%2ehtm&zItl=Installing%20Packages%20on%20Linuxhttp://www.about.com/http://www.about.com/compute/http://linux.about.com/