Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-19-2017, 10:35 AM
|
#1
|
Member
Registered: Nov 2015
Posts: 397
Rep:
|
Fedora, updating notices and packages : dnf updateinfo & dnf check-update
Issue 1: When I ran update info like so:
Code:
$ dnf updateinfo
Last metadata expiration check: 0:06:57 ago on Fri May 19 07:37:15 2017.
Updates Information Summary: available
114 Security notice(s)
173 Bugfix notice(s)
103 Enhancement notice(s)
1 other notice(s)
Q1: How do I go about updating the above notices?
What is the command line needed to get the job done?
Issue 2: And when I do check-updates, I got these:
Code:
$ dnf check-update
Last metadata expiration check: 1:05:56 ago on Fri May 19 07:37:15 2017.
GeoIP.x86_64 1.6.10-1.fc25 updates
GeoIP-GeoLite-data.noarch 2017.04-1.fc25 updates
ImageMagick.x86_64 6.9.3.0-6.fc25 updates
ImageMagick-libs.x86_64 6.9.3.0-6.fc25 updates
ModemManager.x86_64 1.6.4-1.fc25 updates
ModemManager-glib.x86_64 1.6.4-1.fc25 updates
... ...
Q2: Does updating notices in issue 1 automatically
takes care of updating packages in issue 2 also?
Thank you.
Last edited by fanoflq; 05-19-2017 at 10:59 PM.
|
|
|
05-19-2017, 07:47 PM
|
#2
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
"dnf update" as root works for me.
the manpage tells you how to do this.
|
|
|
05-19-2017, 10:38 PM
|
#3
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep:
|
Quote:
Originally Posted by jpollard
"dnf update" as root works for me.
the manpage tells you how to do this.
|
Man page for dnf:
Code:
... ...
Update Command
dnf [options] update
Deprecated alias for the Upgrade Command.
So I tried ;
dnf upgrade
And it upgraded from Linux Kernel 4.8 to 4.10!
It is not what I wanted!
What did I missed?
Last edited by fanoflq; 05-19-2017 at 10:59 PM.
|
|
|
05-20-2017, 05:57 AM
|
#4
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
You got the updates.
Code:
Check Update Command
dnf [options] check-update [<package-specs>...]
Non-interactively checks if updates of the specified packages are
available. If no <package-specs> are given checks whether any
updates at all are available for your system. DNF exit code will be
100 when there are updates available and a list of the updates will
be printed, 0 if not and 1 if an error occurs.
Please note that having a specific newer version available for an
installed package (and reported by check-update) does not imply that
subsequent dnf upgrade will install it. The difference is that dnf
upgrade must also ensure the satisfiability of all dependencies and
other restrictions.
the kernel package got updated.
You could always try specific packages:
Code:
dnf [options] repository-packages <repoid> upgrade-to <pack‐
age-nevr-specs>...
Update packages to the specified versions that are available in
the repository.
But what you got were the updates.
Last edited by jpollard; 05-20-2017 at 06:00 AM.
|
|
|
05-20-2017, 10:14 AM
|
#5
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep:
|
@jpollard:
Thank you.
I ran dnf like so and it got tons of updates:
Code:
$ dnf check-update [4/4]
Opera packages 24 kB/s | 12 kB 00:00
Fedora 25 - x86_64 - Updates 902 kB/s | 23 MB 00:25
Last metadata expiration check: 0:00:28 ago on Sat May 20 07:51:14 2017.
autocorr-en.noarch 1:5.2.7.2-2.fc25 updates
cinnamon-settings-daemon.x86_64 3.4.0-4.fc25 updates
fedora-release.noarch 25-2 updates
fedora-repos.noarch 25-4 updates
firefox.x86_64 53.0.2-5.fc25 updates
less.x86_64 481-7.fc25 updates
libreoffice-calc.x86_64 1:5.2.7.2-2.fc25 updates
... ... # truncated 30 to 50 more update lines .....
I noticed two fedora updates:
fedora-release.noarch
fedora-repos.noarch
What are their differences and what does -repo vs -release means?
You mentioned:
Quote:
dnf [options] repository-packages <repoid> upgrade-to <pack‐
age-nevr-specs>...
|
Using the "dnf check-updates" command's outputs above,
do you mean to run update on each package like these:
Code:
dnf repository-packages autocorr-en.noarch upgrade-to 1:5.2.7.2-2.fc25
dnf repository-packages fedora-release.noarch upgrade-to 25-2
But when I ran like this, I got no updates:
Code:
[root@localhost ~]# dnf repository-packages autocorr-en.noarch upgrade-to 1:5.2.7.2-2.fc25
Last metadata expiration check: 0:13:53 ago on Sat May 20 07:57:39 2017.
Error: No packages marked for upgrade.
What did I missed above?
How to I run update command on all outputs
from "dnf check-update" once instead of updating
each update, which would take forever (and if I do this,
I do not want to update to a new fedora kernel release)?
Last edited by fanoflq; 05-20-2017 at 10:25 AM.
|
|
|
05-20-2017, 10:31 AM
|
#6
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
Quote:
Originally Posted by fanoflq
@jpollard:
Thank you.
I ran dnf like so and it got tons of updates:
Code:
$ dnf check-update [4/4]
Opera packages 24 kB/s | 12 kB 00:00
Fedora 25 - x86_64 - Updates 902 kB/s | 23 MB 00:25
Last metadata expiration check: 0:00:28 ago on Sat May 20 07:51:14 2017.
autocorr-en.noarch 1:5.2.7.2-2.fc25 updates
cinnamon-settings-daemon.x86_64 3.4.0-4.fc25 updates
fedora-release.noarch 25-2 updates
fedora-repos.noarch 25-4 updates
firefox.x86_64 53.0.2-5.fc25 updates
less.x86_64 481-7.fc25 updates
libreoffice-calc.x86_64 1:5.2.7.2-2.fc25 updates
... ... # truncated 30 to 50 more update lines .....
I noticed two fedora updates:
fedora-release.noarch
fedora-repos.noarch
What are their differences and what does -repo vs -release means?
|
The first one is the release notes...
The second one is an update for the repository - possibly a new one.
Quote:
You mentioned:
Using the "dnf check-updates" command's outputs above,
do you mean to run update on each package like these:
Code:
dnf repository-packages autocorr-en.noarch upgrade-to 1:5.2.7.2-2.fc25
dnf repository-packages fedora-release.noarch upgrade-to 25-2
But when I ran like this, I got no updates:
Code:
[root@localhost ~]# dnf repository-packages autocorr-en.noarch upgrade-to 1:5.2.7.2-2.fc25
Last metadata expiration check: 0:13:53 ago on Sat May 20 07:57:39 2017.
Error: No packages marked for upgrade.
What did I missed above?
|
The packages are already updated. This would only be used if you wanted ONE package updated, but none of the others (unless there was some dependency listed that required them).
Quote:
How to I run update command on all outputs
from "dnf check-update" once instead of updating
each update, which would take forever (and if I do this,
I do not want to update to a new fedora kernel release)?
|
That should be :
Quote:
Should be able to edit /etc/dnf/dnf.conf and add the excludepkgs = kernel-* option to the [main] section [1], to exclude any kernel packages from being updated.
If for some reason you can't edit that file, then on the dnf update command, pass -x kernel-* to exclude it from that command only, e.g.:
dnf update -x kernel-*
|
from https://ask.fedoraproject.org/en/que...ernel-version/
|
|
1 members found this post helpful.
|
05-20-2017, 05:36 PM
|
#7
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep:
|
@jpollard:
Thanks.
That works.
I have random screen flicker problem
when i accidentally upgraded to kernel 4.10.xx.
Do you have similar problem?
|
|
|
05-20-2017, 06:00 PM
|
#8
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
Not on my system - but I'm using an older graphics card (about 10 years old now, FireGL V3600).
|
|
|
05-20-2017, 07:08 PM
|
#9
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep:
|
@jpollard:
When I did the update,
that would take care of all these
problems I listed in the first post above, correct?
Quote:
$ dnf updateinfo
Last metadata expiration check: 0:06:57 ago on Fri May 19 07:37:15 2017.
Updates Information Summary: available
114 Security notice(s)
173 Bugfix notice(s)
103 Enhancement notice(s)
1 other notice(s)
|
I answered part of my question like so:
Quote:
$ sudo dnf update
Last metadata expiration check: 2:44:59 ago on Sat May 20 14:27:26 2017.
Dependencies resolved.
Nothing to do.
Complete!
$ dnf updateinfo
Last metadata expiration check: 2:03:08 ago on Sat May 20 15:09:34 2017.
Updates Information Summary: available
1 Enhancement notice(s)
|
How do I deal with this " 1 Enhancement notice(s)"?
Where can I look to find information about content of this notice?
Thank you.
Last edited by fanoflq; 05-20-2017 at 07:17 PM.
|
|
|
05-20-2017, 08:07 PM
|
#10
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
I'm not familiar with that particular message - it may be referring to the updated release notes.
|
|
|
All times are GMT -5. The time now is 01:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|