But uname -a gives this:
Code: Select all
uname -a
Linux rpi3-xxxx 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
Code: Select all
uname -a
Linux rpi3-xxxx 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
Actually 2017-04-10 http://downloads.raspberrypi.org/raspbi ... _notes.txt you are looking at the Kernel / Firmware date not Raspbian release date, please amend your post title:Bosse_B wrote:I just bought a new RPi3 to add to the ones I already use. This time I downloaded the latest available image from the Raspbian download page, where it is stated it is released 2017-04-10.
But uname -a gives this:Seems to be the Feb release....Code: Select all
uname -a Linux rpi3-xxxx 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
Code: Select all
sudo apt-get update
sudo apt-get dist-upgradeCode: Select all
uname -a
Linux raspberrypi 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/LinuxCode: Select all
sudo apt-get update
sudo apt-get upgradeUpdate / upgrade should you get to the latest stable kernel (4.9.something)Bosse_B wrote:This should have upgraded all packages to the latest state, I guess, but not the kernel....
No, I did not know it would be needed. There was no message on screen to that effect either.DirkS wrote: Update / upgrade should you get to the latest stable kernel (4.9.something)
Did you reboot?
Code: Select all
uname -a
Linux rpi3-xxxx 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/LinuxFrom http://manpages.ubuntu.com/manpages/zes ... get.8.htmlBosse_B wrote:Since I thought that upgrade was a lesser type of upgrade (only for installed packages) than dist-upgrade I now have a follow-up question:
What is the difference between dist-upgrade and upgrade?
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. The dist-upgrade
command may therefore remove some packages. The
/etc/apt/sources.list file contains a list of locations from which
to retrieve desired package files. See also apt_preferences(5) for
a mechanism for overriding the general settings for individual
packages.
The only funny thing here is that as usual you are making assumptions about other people's level of knowledge.Martin Frezman wrote:See, that's the funny thing about quoting man pages.
And the fact that a self-confessed unqualified person (i.e. you, in case there's any doubt) feels the need to respond doesn't add anything useful to the topic.Martin Frezman wrote:but the mere fact that qualified speakers have asserted it does, as I have said, add to the confusion.
You seem to be doing your best to confuse the issueMartin Frezman wrote:See, that's the funny thing about quoting man pages.
If somebody asks about something that is in the man pages, it is pretty clear that reading the man page didn't help the person, so having someone else quote the man page again (parroting it) isn't helpful.
I have to admit that I've read the man page description of the difference between upgrade and dist-upgrade several times and I still have no clue what it means. I just always do "dist-upgrade" - since that seems the most inclusive.
Adding to the confusion is the fact that some people (meaning people who should know - not fly-by newbies) have stated on this board that, in the context of Raspbian and the Pi, upgrade and dist-upgrade are synonymous. Others (also qualified speakers) have disputed this. I have no opinion on whether or not they are synonymous (and don't really care, since I always do dist-upgrade), but the mere fact that qualified speakers have asserted it does, as I have said, add to the confusion.
Code: Select all
sudo apt-get upgrade openvpnRegards update from Wheezy to Jessie, one must manually change the Sources, it can not be undertaken by a straight forward update / upgrade / dist-upgrade. The same will be so from Jessie to Stretch...Bosse_B wrote:OK, I did not read the man page(s), but I have googled the upgrade command a few days ago when I wanted to bring the openvpn package (and only that) to the latest version.
I triedand then I found myself in a situation where the supposedly quick upgrade of a single package took forever and downloaded a lot of stuff.Code: Select all
sudo apt-get upgrade openvpn
So I had to Google and found that the upgrade command does not look any further on the command line to find WHAT to upgrade, which I did not know beforehand....
What I do know from having done it half a year or so ago is that dist-upgrade will handle the whole Raspbian itself. I had a Wheezy Pi which I wanted to bring over to Jessie and this was done using dist-upgrade.
In the case above I wanted the latest version of openvpn but NOT be switched over to Jessie!
Luckily it seems like the upgrade command did not do a release change...
It is clear to me in any case that there should be a difference between a command to upgrade the various packages in a distribuition to the latest state for that release and a command to move the operating system itself from one release to another.
Compare on Windows where one does not want to install a Windows Update thingie and find that in the process the OS moved from Win7 to Win8 or Win10! (Even though Microsoft tried just that regarding Win10! Fortunately I saw it so I could take countermeasures!)
The man page of a package manager only mentions packages?hippy wrote:One thing I noted with the man pages is that both upgrade and dist-upgrade only mention packages, not firmware or kernel.
On most Debian based systems you do need to do a dist-upgrade to pull in a new kernel as each kernel version has its own package. There is a kernel meta-package that gets updated and Depends on the latest actual kernel package. So when you try upgrade it won't do it as it will require the installation of a new package (kernel-x.y.z).What confused me is people seeming to suggest it requires dist-upgrade to get a new kernel when upgrade seems to be enough. However, it also seemingly requires a reboot, which rarely gets mentioned.
I'm trying to find out just how many kernel upgrades there have been in the last six months, as I think there's some bad advice being given.hippy wrote: What confused me is people seeming to suggest it requires dist-upgrade to get a new kernel when upgrade seems to be enough. However, it also seemingly requires a reboot, which rarely gets mentioned.
http://archive.raspberrypi.org/debian/p ... -firmware/PeterO wrote:I'm trying to find out just how many kernel upgrades there have been in the last six months, as I think there's some bad advice being given.hippy wrote: What confused me is people seeming to suggest it requires dist-upgrade to get a new kernel when upgrade seems to be enough. However, it also seemingly requires a reboot, which rarely gets mentioned.
PeterO
Thanks, that was what I was looking for, but I was looking on GitHub where it isn't quite so obvious !DirkS wrote:http://archive.raspberrypi.org/debian/p ... -firmware/PeterO wrote:I'm trying to find out just how many kernel upgrades there have been in the last six months, as I think there's some bad advice being given.hippy wrote: What confused me is people seeming to suggest it requires dist-upgrade to get a new kernel when upgrade seems to be enough. However, it also seemingly requires a reboot, which rarely gets mentioned.
PeterO
5 since december last year.
I was not aware of that. That was a gap in my understanding.rpdom wrote:The man page of a package manager only mentions packages?hippy wrote:One thing I noted with the man pages is that both upgrade and dist-upgrade only mention packages, not firmware or kernel.lol!
The firmware and kernels are in packages.