HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   How does Ubuntu Update Manager upgrade packages selectively? (http://www.howtoforge.com/forums/showthread.php?t=56835)

cbj4074 9th April 2012 18:53

How does Ubuntu Update Manager upgrade packages selectively?
 
Hello,

I ran into an issue recently whereby Webmin caused Apache to tank during what seemed to be a routine package upgrade.

As it turns-out, Webmin uses 'apt-get install -y package-name', instead of 'apt-get upgrade', because the author is unaware of any means by which packages may be upgraded selectively using the latter command.

The details of the issue are described here: https://bugs.launchpad.net/ubuntu/+s...e2/+bug/969426

I scoured the relevant documentation for apt-get and indeed, the Webmin author is correct. There appears to be no facility for upgrading specific packages.

My question to the community is, how does Ubuntu's Update Manager upgrade packages individually? The interface provides a checkbox for each proposed update, and the user is able to pick-and-choose.

If anyone has any insight, it would be most appreciated.

falko 10th April 2012 21:53

You can upgrade packages like this:

Code:

apt-get install package1 package2 ...
I'm not sure if this is the way Ubuntu's Update Manager does it...

cbj4074 10th April 2012 22:36

Thank you for the reply, Falko. Much appreciated.

Did you have a chance to look at the link that I cited in my initial post? There is a fundamental problem with using "install" over "upgrade". In short, with "install", there is the potential for packages to be removed and never reinstalled.

In the case of Apache, using 'apt-get install -y apache2' will cause libapache2-mod-php5 to be removed (for reasons explained in the link above). Needless to say, when the package installation script attempts to start Apache after the upgrade (or installation, in this case), Apache fails to start due to the presence of Mod-PHP-specific configuration directives. The only way to reconcile the problem is to reinstall libapache2-mod-php5 manually.

If any other ideas come to mind, I'd be grateful to hear them.


All times are GMT +2. The time now is 11:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.