Hondo's Cabin
http://www.hondosackett.com/yabb/YaBB.pl
The Cabin >> Raspberry and Other Pies >> Difference Between apt-get update and upgrade
http://www.hondosackett.com/yabb/YaBB.pl?num=1461024019

Message started by Fernando on Apr 18th, 2016, 8:00pm

Title: Difference Between apt-get update and upgrade
Post by Fernando on Apr 18th, 2016, 8:00pm

It looks like my job is not finished in the Raspbian updating.

Though the Raspbians are but updated on Wheezy and Jessie on a few of my SD, and things are running smoothly, I decided to look at my friend's SD and see if I can update it. But in looking at the update logs, it looks like nothing was installed. So I looked up the difference between the two commands 'update' and 'upgrade.'

Googling it got me a few answers but nothing on Raspbian. There was something under Ubuntu, which is a part of Debian, which Raspbian is a part of.


Quote:
Question(s)
What is the difference between apt-get update and apt-get upgrade?
Which should I run first?
Do any of them automatically run the other?

Answer
You should first run update, then upgrade. Neither of them automatically runs the other.

apt-get update updates the list of available packages and their versions, but it does not install or upgrade any packages.

apt-get upgrade actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed.

This is why you first want to update.

(From: http://askubuntu.com/questions/94102/what-is-the-difference-between-apt-get-update-and-upgrade )

This is strange as in there is some file updating in the Raspbian Linux. But it is just enough to straighten out a few program pointers. This would explain why the current updates to Raspbian (on both Jessie and Wheezy) fixes a few issues, like in the past issues of being CPU Only compared to CPU Selective Boots.

Since my friend's R-Pi I put together as an X-Mas gift in 2013, it needs a major overhaul of the system. true, it s  Model B and it is Wheezy, but it is Wheezy from 2013, not Wheezy from 9/15 and the current version is Wheezy 4/16. I figure it was time for time for some kind of an upgrade.

So I updated his system, which fixed the file pointers and then started an upgrade with "sudo apt-get upgrade" .

Unfortunately, I packed his SD card to be a "Full PC" so it has a lot of software in it to upgrade as well as the OS itself. It's been 30 minutes into this operation and it is still upgrading.... HA!

Title: Re: Difference Between apt-get update and upgrade
Post by Fernando on Apr 18th, 2016, 8:11pm

WOAH! Though it took about 45 minutes to complete the upgrade, everything runs extremely fast! If I did not know this was on a Model B Raspberry Pi, I would swear it was a R-Pi2! Booting only took 20 seconds of less, and other things were just as fast! Libre Office, which takes up almost a minute to load up as it sorts through the system for things like fonts and all that, also took 20 seconds to run! Furthermore, this is on a Class 4 SD card 8GB in size!

Looks like I need to upgrade those SD Cards I updated before.

Hondo's Cabin » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.