dearsgroup
Posts: 28
Joined: Tue Jun 23, 2015 2:13 am

Keeping Raspbian up-to-date

Sun Jul 05, 2015 10:30 pm

In order to keep my pi to date can anyone tell me which of these I absolutely require?

1. sudo apt-get update
2. sudo apt-get -y upgrade
3. sudo apt-get dist-upgrade
4. sudo apt-get install raspberrypi-ui-mods
5. sudo rpi-update

I think, based on the various forum and other messages read, that 1,2, & 5 should suffice? A bit confusing for me at this time.


dearsgroup
Posts: 28
Joined: Tue Jun 23, 2015 2:13 am

Re: Keeping Raspbian up-to-date

Mon Jul 06, 2015 1:09 am

Wow! I'm having visions. Do I have your permission to try this code myself?

klricks
Posts: 8121
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Keeping Raspbian up-to-date

Mon Jul 06, 2015 1:50 am

dearsgroup wrote:In order to keep my pi to date can anyone tell me which of these I absolutely require?

1. sudo apt-get update
2. sudo apt-get -y upgrade
3. sudo apt-get dist-upgrade
4. sudo apt-get install raspberrypi-ui-mods
5. sudo rpi-update

I think, based on the various forum and other messages read, that 1,2, & 5 should suffice? A bit confusing for me at this time.
1 & 2 - Most of the time is sufficient. I run these once a week or so.
3 - Only when there is a new OS release and you don't feel like downloading and starting from scratch the beginning.
4 - I believe that only applies to images before Dec. 2014?
5 - Do not do this unless you have a specific reason. In the past this was done routinely but not now.

Note that #1 is done before attempting to apt-get install anything.
Unless specified otherwise my response is based on the latest and fully updated RPi OS Bullseye w/ Desktop OS.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6354
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Keeping Raspbian up-to-date

Mon Jul 06, 2015 3:17 am

I only do this:
apt-get update
apt-get dist-upgrade

Unless you know why you're running the others, don't.

Return to “Beginners”