User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

How often to run "sudo apt-get update"

Thu Aug 30, 2012 12:52 pm

Hello, I'm going to install Rasbian Wheezy for the first time tonight and if that goes well, SSH & VNC thereafter.

I've seen suggestions on this forum that you should run sudo apt-get update, but how often should I run it?

Thanks for any help!

AlArenal
Posts: 141
Joined: Sun Feb 26, 2012 6:58 pm
Location: Germany
Contact: Website

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 1:06 pm

Roughly at least once on every day before you're installing something new and once in a while followed by "sudo apt-get upgrade" to install latest patches.

User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 1:13 pm

Coming from a Windows background, the idea of updating all installed programs (or packages) from a single command is quite alien.

Thanks for the reply!

mdewey
Posts: 37
Joined: Wed Dec 07, 2011 10:47 am
Location: UK

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 1:18 pm

bigdavethehorn wrote:Hello, I'm going to install Rasbian Wheezy for the first time tonight and if that goes well, SSH & VNC thereafter.

I've seen suggestions on this forum that you should run sudo apt-get update, but how often should I run it?

Thanks for any help!
You do realise that apt-get update does not itself update your packages but updates the list which apt-get has of the packages on the repositories? This was not quite clear to me from your question. It is apt-get upgrade which updates all your packages.

User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 1:26 pm

I didn't realise this at the time of my first post, but I found some useful info on the apt-get command here:

https://help.ubuntu.com/8.04/serverguide/apt-get.html

When you enter "apt-get update" will a list appear detailing all of the outdated packages on my install?

Thank you.

User avatar
Mortimer
Posts: 924
Joined: Sun Jun 10, 2012 3:57 pm

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 1:32 pm

Sadly not. It just updates the locally held list.
Running sudo apt-get upgrade, will list what will be upgraded and then ask you whether you want to proceed or not.

Aptitude gives more detail I think, but I personally run 'sudo apt-get update && sudo apt-get dist-upgrade' at the start of my first session on the Pi in a given day. So effectively every time I log in or at least once a day, whichever is less frequent.

If I was using the RPi for an established task or service, then I wouldn't do that. The doctrine of 'If it ain't broke, don't fix it' kicks in, and I would probably look at a way to review and pick updates before installation. As I am simply using it as a personal education tool at the moment, I do as stated in the previous paragraph.
--------------
The purpose of a little toe is to ensure you keep your furniture in the right place.

User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 3:25 pm

Thanks Mortimer.

User avatar
bigdavethehorn
Posts: 56
Joined: Thu Jan 19, 2012 8:46 pm
Location: Scotland

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 3:26 pm

Oh, if there are any other inexperienced Linux folk (like me) reading this, then there's no need to install SSH on Wheezy, I have read that it is installed by default.

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: How often to run "sudo apt-get update"

Thu Aug 30, 2012 6:19 pm

Yes it is you can switch it off in raspi-config (the setup script)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

User avatar
Montala
Posts: 675
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: How often to run "sudo apt-get update"

Sat Sep 01, 2012 12:25 pm

I also come from a Windows 'background' and am quite frankly surprised at the number of 'updates' and 'upgrades' already available, even for the latest 'official' version of Raspbian "wheezy", dated 8th August.

They probably aren't all strictly necessary, but I do not have the knowledge or expertise to know which ones I need (or don't need!) anyway, so I tend to accept them all.

I am one of those who believe that it is always good to have the latest versions of any program, but I know that some folks think differently, and prefer to work on the "if it ain't broke, then don't try to fix it" principle! ;)

Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

Re: How often to run "sudo apt-get update"

Sat Sep 01, 2012 1:28 pm

Montala wrote: I am one of those who believe that it is always good to have the latest versions of any program, but I know that some folks think differently, and prefer to work on the "if it ain't broke, then don't try to fix it" principle! ;)
I realize it is not easy to grasp the Debian release cycle, but it releases new stable versions roughly every two years.

Debian consists of several branches - experimental (for developers), sid (still in development), testing (means testing) and stable (really stable). :)

Raspbian is a custom Debian testing. About every six months or so before the initial release, testing is frozen, until it becomes the new stable. Testing/Wheezy froze this summer. (After that, testing starts rolling again.) It means no new versions of anything from the Debian repositories, just bugfixes and security fixes. (I understand it is a little more complex than that for Raspbian, since some applications are custom for the raspberry pi and grabbed from git, like omxplayer.)

What I am trying to say is: No upgrades = no bugfixes and no security fixes.

User avatar
Montala
Posts: 675
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: How often to run "sudo apt-get update"

Sat Sep 01, 2012 1:35 pm

Thanks... but just to clarify... I am all for the updates (& upgrades), and make sure I install them regularly.

It was just the number, and frequency, of them which rather surprised me!

Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

Re: How often to run "sudo apt-get update"

Sat Sep 01, 2012 2:48 pm

Montala wrote:Thanks... but just to clarify... I am all for the updates (& upgrades), and make sure I install them regularly.

It was just the number, and frequency, of them which rather surprised me!
Testing is always like that. It will calm down once stable is released. Just the occasional security fix then.

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: How often to run "sudo apt-get update"

Sat Sep 01, 2012 2:55 pm

Technically we can't get to the fist stable release till the first release is six months old. ;)

Saying that it seems to be fairly stable now.
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

Return to “Raspbian”