pablo808
Posts: 5
Joined: Thu Oct 17, 2013 11:31 pm

rpi-update command

Wed Oct 23, 2013 6:18 am

Hello,

I have some questions regarding the command rpi-update. My understanding is that it updates the firmware of the RPi.

I have a couple of RPi's and for the first 2, I used the provided RPi pre-installed SD cards which contain Raspbian OS. I ran apt-get upgrade, apt-get update and all is good. I then ran rpi-update but got a 'command not found'.

For a 3 RPi downloaded the 2013-09-25-wheezy-raspbian image and write it to an SD card, ran apt-get upgrade, apt-get update and was able to run rpi-update which completed sucessfully.

-What is the different between the pre-install Raspbian OS and the downloadable image?
-Is the rpi-update command 'new' which is why it was included in the latest image?
-How can I run rpi-update on my 2 RPi which current dont have it current installed?

Thanks.

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: rpi-update command

Wed Oct 23, 2013 6:35 am

Hi,
earlier releases of raspbian didn't have rpi-update installed by default, later releases did.
If you have a system that does not have rpi-update installed just use the following to install it :

Code: Select all

sudo apt-get install rpi-update
Hope this helps,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

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

Re: rpi-update command

Wed Oct 23, 2013 7:19 am

Don't do it.

rpi-update was a quick hack made back in the day before the kernel and firmware was not properly packaged. apt-get upgrade is enough in 99% of the cases.

pablo808
Posts: 5
Joined: Thu Oct 17, 2013 11:31 pm

Re: rpi-update command

Wed Oct 23, 2013 11:58 pm

Thanks for all the responses.

I'm confused, so should I or shouldn't I use rpi-update?

If I shouldn't, why is this command included on the later images?

I guess what I am looking for is an 'authorative' answer...

pmc
Posts: 36
Joined: Sun Mar 31, 2013 8:07 pm

Re: rpi-update command

Thu Oct 24, 2013 12:30 am

As a newbee you haven't read into what was stated above.

You can use either rpi-update, or apt-get upgrade.

Use apt-get update first, followed by apt-get upgrade.

apt-get has other parameters including remove. See the manual for the command parameters etc.

pablo808
Posts: 5
Joined: Thu Oct 17, 2013 11:31 pm

Re: rpi-update command

Thu Oct 24, 2013 12:57 am

Thank you for that input.

Do does apt-get upgrade upgrade the firmware?

From this post, it looks like there are different: http://raspberrypi.stackexchange.com/qu ... f-raspbian

OK I think I found an answer. Only run rpi-update if you need the latest bleeding edit updates.

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

Re: rpi-update command

Thu Oct 24, 2013 1:18 pm

pablo808 wrote: Only run rpi-update if you need the latest bleeding edit updates.
That's pretty much it. I would change that to "Only run rpi-update if you know you need a specific build of the firmware or if you were asked to do so by Dom."


Yes, apt-get upgrade WILL update your firmware to the latest stable version, and that MAY conflict with rpi-update. If you see something on the internet that says otherwise, it's probably outdated information.

pablo808
Posts: 5
Joined: Thu Oct 17, 2013 11:31 pm

Re: rpi-update command

Fri Oct 25, 2013 5:33 am

Thats clear now.

Thanks.

rasppyuser
Posts: 1
Joined: Sun Jun 22, 2014 11:49 am

Re: rpi-update command

Sun Jun 22, 2014 12:04 pm

Hi, I have been using rpi-update for some months, but I want to move to the more stable package images (using apt-get).

I have found this comment that lists some packages affected by rpi-update and propose a command to override rpi-update updates with apt-get ones: https://github.com/raspberrypi/linux/is ... t-46278157

Is the comment right, or are there more packages affected, or do I need to do more things to go back to apt-get version?

Thanks!

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: rpi-update command

Tue Jun 24, 2014 7:01 pm

rasppyuser wrote:Hi, I have been using rpi-update for some months, but I want to move to the more stable package images (using apt-get).

I have found this comment that lists some packages affected by rpi-update and propose a command to override rpi-update updates with apt-get ones: https://github.com/raspberrypi/linux/is ... t-46278157

Is the comment right, or are there more packages affected, or do I need to do more things to go back to apt-get version?

Thanks!
Yup, that's right, @asb is the maintainer of the Raspberry Pi build of Raspbian 8-)

Return to “Beginners”