Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner

Laptops
Online Education
Hurricane Shutters
Prepaid Phone Card
Desktop Computers
Compare Prices
Logo Design
Find Software
Server Racks
GPS
Web Design
Disney World Tickets
Promotional Golf
Shop Online



internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article
Eco Notes Blog: Technology and the Environment. David Douglas, VP of Eco Responsibility at Sun, is responsible for Sun's overall approach to Eco, including products and internal operations.

   LinuxPlanet / Tutorials



  Rethinking the Datacenter
Sponsored by HP
Today's datacenters need to increase utilization, get control over power and cooling costs, and align with business objectives. Download this eBook to learn about the challenges facing the data center in a world where digital information is growing at a torrid pace and costs are being held in check. Learn more. »
 
  Putting the Green into IT
Sponsored by HP
Electricity use in data centers is skyrocketing, sending energy bills through the roof, creating environmental concerns and generating negative publicity. "Going Green" means looking to technologies like virtualization, energy-efficient chips and racks, and implementing policies that extend beyond the data center. Learn more. »
 
  Managing the Modern Network
Sponsored by HP
In a global economy where information crosses the globe in an instant, and where Web-based applications power business, it's more important than ever to ensure your network is safe from threats and optimized to deliver the data your business needs. »
 
  Evaluating Software as a Service for Your Business
Sponsored by Webroot
Is Software as a Service just hype, or is something really going on here? See if your company can benefit as SaaS tries to change the face of the enterprise. »
 
  Is Your Disaster Recovery Plan Good Enough?
Sponsored by HP
Preparing for a disaster is more often than not part of the storage planning process, and it is one of the most difficult tasks, since it includes local hardware and software, networking equipment, and a test plan. Learn how to get disaster recovery right. »
 
Linux Package Management: Keeping Up with the Times
Red Hat Package Manager

Dee-Ann LeBlanc
Monday, April 22, 2002 10:11:13 AM

RPM is the Swiss army knife of the package manager world, in that you use a single command to do a wide variety of things. Well, that's not entirely true: you use a single command, with a whole pile of possible option flags.

At the base of working with RPM files is the rpm command. Some common variations you'll see of using this one include:

Command ExampleDescription
rpm -qa | more
List all installed RPM packages, and of course display them only one screen at a time, there's a lot of them on an RPM-based system!
rpm -ql perl
List all of the files added to the filesystem when I installed the Perl package, and where they were placed.
rpm -qlp perl-5.6.1.i386.rpm
List all of the files and where they will be added to the filesystem if I install the Perl package specified.
rpm -qi perl
Display information about the Perl package I installed.
rpm -qip  perl-5.6.1.i386.rpm
Display information about the Perl package I'm thinking about installing.
rpm -ivh  perl-5.6.1.i386.rpm
Install this Perl package, give verbose output, and display hashes to show me progress.
rpm -Uvh  perl-5.6.1.i386.rpm
Install this Perl package, or if it's already installed but a previous version, update my Perl installation with the new version. Also, give verbose output, and display hashes to show me progress.
rpm -Fvh  perl-5.6.1.i386.rpm
Install this Perl package even if I'm getting errors about conflicts or versions. Also, give verbose output, and display hashes to show me progress.
rpm -e perl
Uninstall the Perl package.

In the old days, it was smart to only install or update one package at a time, since if RPM ran into conflicts trying to install a long list in order, the entire installation or update would fail--this is what caught me up in the KDE installation. Nowadays, the rpm command is a much smarter tool and can figure out the proper order if all of the necessary packages are listed. Even better, if you want to install every RPM in the current directory, just use:

rpm -Uvh *

Popular distributions that utilize RPM are Red Hat, Mandrake, and SuSE. I'm sure I've left someone's favorite out, my apologies in advance. Each of these distributions has at least one tool available that helps you to grab all of the latest security patches, bug fixes, and more for what you've got installed on your system.

Next: Debian Packages »

Skip Ahead

1 Introduction to Package Types
2 Red Hat Package Manager
3 Debian Packages
4 Tarballs
5 Wrapping Up





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers