Ask Your Question

How to synchronise the latest version of Fedora repo available with my computer ?

asked 2017-10-08 13:10:46 +0000

Nicryc gravatar image

Hi, What is the command line to force the synchronisation of the latest repository of Fedora available on the computer ? For example a package has been updated and is visible on the Fedora Update System website but when I do a dnf upgrade <package>, it isn't available yet. How do I synchronise the repo ? Thank you.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-10-08 19:09:54 +0000

ozeszty gravatar image

updated 2017-10-13 12:50:14 +0000

Hi, fresh packages might be getting to you later for few reasons:

  1. cache haven't expired since last metadata download, so dnf haven't checked if newer one is available
    • use --refresh parameter to force checking if newer metadata is available;
    • shorten metadata expiration time by adding/changing metadata_expire=time_in_seconds in /etc/dnf/dnf.conf
  2. updates haven't yet propagated to mirrors you're using - try forcing other mirrors just for that update (replace some-mirror-address):
    • for updates use dnf update --repofrompath updates-mirror,http://some-mirror-address/fedora/linux/updates/$(rpm -E %fedora)/$(arch)/
    • for updates-testing use dnf update --repofrompath updates-testing-mirror,http://some-mirror-address/fedora/linux/updates/testing/$(rpm -E %fedora)/$(arch)/.

To install or update package which is currently in testing, append --enablerepo=updates-testing to appropriate dnf command.

If updates are not yet in testing, you can download packages manually from https://koji.fedoraproject.org/koji/ and install them with dnf install path_to_.rpm_package.

If you use dnf with -v parameter, it will print some useful info, e.g. metadata creation timestamp, or whether metadata cache is being used.

edit flag offensive delete link more


And how do you install a package which is currently in test ?

Nicryc ( 2017-10-13 11:53:23 +0000 )edit

I updated my answer with this explained.

ozeszty ( 2017-10-13 14:32:34 +0000 )edit

answered 2017-10-08 18:04:46 +0000

masteroman gravatar image

To force refresh of the repos use:

sudo dnf upgrade --refresh

Note that package version may not be distributed to all mirrors yet. That takes some time.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2017-10-08 13:10:46 +0000

Seen: 418 times

Last updated: Oct 13 '17