[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#28391: apt-get install without upgrading



Package: apt
Version: 0.1.7
Severity: wishlist

It would be nice if apt-get would have the following feature:

Currently, if you call "apt-get install PKG" and PKG is already
installed, apt-get tries to update the package if a newer version is
available. Could there be an option --no-upgrade or the like that
avoids those upgrades (but not installed packages will still be
installed)?

Background: I use apt-get together with my source dependency based
build daemon system. apt-get does the "dirty" work of installing
needed source dependencies. But if a package is listed as src dep, it
will be on the apt-get install command line, and thus upgraded if not
the newest version is already installed. But it happens more or less
often in unstable that I do not want to use the newest version of a
package for development. I'd more like to upgrade the system by hand
in a controlled way. Ok, it would be possible to find out which
packages are already installed and leave them out, but this is a lot
of extra work and apt-get has all the infos available. It should be
rather trivial to implement the --no-upgrade there. It's just the more
convenient place to get the desired functionality :-)

A second reason why I don't like these auto-updates is that some
package do not install nicely if stdin is redirected from /dev/null. I
need to do this, because the daemon who call apt-get cannot answer
questions from a postinst :-) I can't avoid this if a source
dependency isn't installed yet, but it's unnecessary if the package is
already available, just not the newest version.

Roman


Reply to: