Pages

Monday, 11 August 2014

Dry-run package installation without installing them

Sometimes we might want to perform a 'dry-run' of package installations without actually installing them in order to prevent unwanted changes from happening. It is very much possible and is highly recommended specially while installing packages from untrusted sources. So do this before installing anything:

$ apt-get install --dry-run [package]

If you have a debian (.deb) package already and would like to see what changes it is going to make, do this:

$ dpkg --dry-run -i package.deb

This will definitely save you someday!

No comments:

Post a Comment