LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-19-2017, 09:35 AM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
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 09:59 PM.
 
Old 05-19-2017, 06:47 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,851

Rep: Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483
"dnf update" as root works for me.

the manpage tells you how to do this.
 
Old 05-19-2017, 09:38 PM   #3
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
"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 09:59 PM.
 
Old 05-20-2017, 04:57 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,851

Rep: Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483
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 05:00 AM.
 
Old 05-20-2017, 09:14 AM   #5
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
@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 09:25 AM.
 
Old 05-20-2017, 09:31 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,851

Rep: Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483
Quote:
Originally Posted by fanoflq View Post
@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.
Old 05-20-2017, 04:36 PM   #7
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
@jpollard:


Thanks.
That works.

I have random screen flicker problem
when i accidentally upgraded to kernel 4.10.xx.
Do you have similar problem?
 
Old 05-20-2017, 05:00 PM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,851

Rep: Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483
Not on my system - but I'm using an older graphics card (about 10 years old now, FireGL V3600).
 
Old 05-20-2017, 06:08 PM   #9
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
@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 06:17 PM.
 
Old 05-20-2017, 07:07 PM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,851

Rep: Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483
I'm not familiar with that particular message - it may be referring to the updated release notes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] removing packages dnf & yumex mtdew3q Fedora 3 02-12-2016 09:53 AM
Fedora 22 dnf autoremove removes wanted packages thanquol1313 Linux - Newbie 2 10-20-2015 01:01 PM
[SOLVED] how to check packages locally installed in fedora using dnf ? mshlinux Fedora 4 09-17-2015 04:15 AM
LXer: Managing packages on Fedora with DNF LXer Syndicated Linux News 0 09-16-2015 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration