raspbian pixel
What is the difference between sudo apt-get update and sudo apt-get upgrade?
https://linux.die.net/man/8/apt-getfjr wrote:raspbian pixel
What is the difference between sudo apt-get update and sudo apt-get upgrade?
If it's running as an internet server you MUST do it at least once a week possibly more frequently.KMyers wrote:Sorry dont want to hijack this thread,![]()
How often should one do this?
Thanks!
Ken
Code: Select all
root@eagle /etc/apt/apt.conf.d # cat 02periodic
APT::Periodic::Enable "1";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::MaxAge "5";
APT::Periodic::MinAge "2";
APT::Periodic::Verbose "0";
root@eagle /etc/apt/apt.conf.d #
No - not really - its not quite as straightforward as thatsudo apt-get update downloads the update, sudo apt-get upgrade installs the update
sudo apt-get update -------------- updates the OS ( i do this whenever i am missing packages [and/or once a week or so, its good habit])sudo apt-get update downloads the update, sudo apt-get upgrade installs the update
The first two replies to this query answered it concisely and accurately. A recursive reply that says that update updates adds nothing to the discussion.linxuser8671 wrote:sudo apt-get update -------------- updates the OS ( i do this whenever i am missing packages [and/or once a week or so, its good habit])sudo apt-get update downloads the update, sudo apt-get upgrade installs the update
sudo apt-get upgrade ----------- upgrades the OS ( i rarely do this but should probably more)
It doesn't work like that, Read the first response from Dougie.linxuser8671 wrote:sudo apt-get update -------------- updates the OS ( i do this whenever i am missing packages [and/or once a week or so, its good habit])sudo apt-get update downloads the update, sudo apt-get upgrade installs the update
sudo apt-get upgrade ----------- upgrades the OS ( i rarely do this but should probably more)
No it does not. It updates the packages meta data used by apt-get for other operations.linxuser8671 wrote: sudo apt-get update -------------- updates the OS [sic] ( i do this whenever i am missing packages [and/or once a week or so, its good habit])
Code: Select all
pi@raspberrypi:~ $ sudo apt update
................
Fetched 9264 kB in 18s (509 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@raspberrypi:~ $ sudo apt upgrade -y
Start a new thread.KMyers wrote:Yes I have a printout of your instructions here on my ext drive. I would like to get it to display graphs of my sensor network like Adafruit does. Any suggestions or shou;d I start a new thread on this?
Ken