A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label yum. Show all posts
Showing posts with label yum. Show all posts

Yum show every available version of a package

yum --showduplicates list [package]

Should be called --all-versions instead.

Working with RPMs

Use -q to query:
    rpm -qi package_name # display info about the specified package
    rpm -ql package_name # list all the files in the specified package
    rpm -qa # list all installed packages

Add -p if you're querying an RPM file, omit it if you're querying an installed package.

How to set up apt-get on ubuntu

NOTE: Yum is designed for use on redhat-like systems using RPMs.
Ubuntu is based on debian, so uses apt-get/aptitude and .deb files.

On a fresh linux install:
  • sudo apt-get update
  • "You will have to enable the component called 'universe'": Go to System > Administration > Software Sources. Under the Ubuntu Software tab, tick the box for Community maintained Open Source Software (universe).
  • sudo apt-get install XXX

To where has yum installed a package?


Yum works with RPMs:

rpm -ql packagename