Apt-get update && apt-get upgrade

macamba

Renowned Member
Mar 8, 2011
96
5
73
For distribution upgrading I always follow the instructions at your Downloads page. Upgrade mostly includes something like apt-get dist-upgrade in that case.

But for regular maintenance/ updating I don't exactly know whether to use apt-get update including or excluding && apt-get upgrade?

Currently I am already running 3.1-24
 
But for regular maintenance/ updating I don't exactly know whether to use apt-get update including or excluding && apt-get upgrade?

in short, afaik:
apt-get update: only updates available packages database from all repositories configured.
apt-get upgrade: tries to get latest version available of all installed packages, based on the database

but you shoud get more familiar with apt utilities (also aptitude)

Marco
 
Thanks Marco. Maybe I asked the question wrong. I actually know what these commands do. The question was meant in the following context: "Whether is it wise to use both commands with Proxmox? I was afraid that 'upgrade' would maybe upgrade underlying packages which are not compatible with the version of Proxmox".@Nico Haase: I really don't get people like you who take the effort to mention that's not a Proxmox related question instead of while your already to it just answer or constructively participate in the discussion. I feel sorry for people like you who try to be added value in this way.
 
Sorry, macamba, but if you state you know what apt-get does, but do not understand that apt-get updates does nothing more than updating the internal database of apt-get, I cannot see where you have understood apt-get...

Of course, a apt-get upgrade upgrades packages (that's why its called that way), but never without giving you a hint if there is any known conflict. If you use more sources than the ones provides by the basic installation, you enlarge the risk that something breaks without having a conflict configured - an installation package states in its internals which requirements are needed and which conflicts the developer clearly identifies, but this mostly happens in the scope of a single package source - the guys maintaining the original debian packages cannot know about specialities of proxmox packages, and the proxmox developers cannot check against conflicts with each and every package repository in the world. But in the end, this is no question that is only related to proxmox, as this happens in each package-based installation system
 
The question was meant in the following context: "Whether is it wise to use both commands with Proxmox? I was afraid that 'upgrade' would maybe upgrade underlying packages which are not compatible with the version of Proxmox".

see http://pve.proxmox.com/wiki/Quick_i...Proxmox_VE_Server_to_latest_available_version

so, it is the suggested way. Of course you could want to install some package (even from debian standard repos) which could break some pve package compatibility. apt-get should warn, explain and let you decide (but it Does Not Have Super Cow Powers (tm))

see this thread also: http://forum.proxmox.com/threads/17...o-remove-essential-packages?p=90043#post90043

Marco
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!