About Linux FAQ

Browse More FAQs:

How To Simulate Linux Package Upgrade Without Installing Anything ( Dry Run )

Posted by Vivek Gite [Last updated: July 6, 2008]

Q. How do I simulate the upgrade first to confirm that the actions that would be taken are reasonable under Debian / Ubuntu Linux package management?

A. Dry run is really good idea under for all production servers. You can print the actions that would normally be performed, but don't actually perform them. This does not require root privileges. It is recommended that you simulate the upgrade first to confirm that the actions that would be taken are reasonable. The upgrade may be simulated by issuing the command:
# aptitude -s -y dist-upgrade
OR
$ sudo aptitude -s -y dist-upgrade
Sample output:

 aptitude -s -y dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
  libgssapi2
The following packages will be upgraded:
  libpcre3
1 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/199kB of archives. After unpacking 119kB will be freed.
Would download/install/remove packages.

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Ramesh | The Geek Stuff Says:

    Vivek,

    I totally agree with you. I don’t install anything without first doing a dry-run. Even if you are just installing a single package, it is good to do a dry run to make sure it works properly before really installing it.

    On a side note, if you are installing a package using rpm, you can perform the following to test it before installing it.

    rpm -ivh package-name.rpm –test

    Ramesh
    The Geek Stuff

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.