LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedora, updating notices and packages : dnf updateinfo & dnf check-update (https://www.linuxquestions.org/questions/linux-newbie-8/fedora-updating-notices-and-packages-dnf-updateinfo-and-dnf-check-update-4175606283/)

fanoflq 05-19-2017 09:35 AM

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.

jpollard 05-19-2017 06:47 PM

"dnf update" as root works for me.

the manpage tells you how to do this.

fanoflq 05-19-2017 09:38 PM

Quote:

Originally Posted by jpollard (Post 5712944)
"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?

jpollard 05-20-2017 04:57 AM

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.

fanoflq 05-20-2017 09:14 AM

@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)?

jpollard 05-20-2017 09:31 AM

Quote:

Originally Posted by fanoflq (Post 5713083)
@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/

fanoflq 05-20-2017 04:36 PM

@jpollard:


Thanks.
That works.

I have random screen flicker problem
when i accidentally upgraded to kernel 4.10.xx.
Do you have similar problem?

jpollard 05-20-2017 05:00 PM

Not on my system - but I'm using an older graphics card (about 10 years old now, FireGL V3600).

fanoflq 05-20-2017 06:08 PM

@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.

jpollard 05-20-2017 07:07 PM

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 02:47 AM.