Ask Your Question
0

How can I download all current fedora24 updates for offline installation?

asked 2016-07-04 16:58:42 -0500

David-LDA gravatar image

Hello,

I have been playing with Fedora 24 for a few days and love it! I am new to Linux, trying to escape Windows.

I would like to get my friend to install it, but she has no internet connection and I want her to have a reasonably updated version (i never trust a 1.0 version :)

As it stands on my install I used the software center, hit the refresh button and it showed me all the many updates. I then selected install and it was done. I am a bit surprised I had no option to select what updates I did and did not want to download and apply! How is that done?

Anyway, I am aware of the DNF command, and saw there was a --downloadonly argument, but I have NO IDEA how to use it.

My goal is to go to my friends house with an ISO of Fedora 24 and a folder with all the current updates with a method of installing them all so that Fedora treats them as if they had been installed normally and will enable future updates. THANKS!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-04 18:00:14 -0500

pinecone gravatar image

To answer the superficial question, if you just wanted to download the updates, then dnf upgrade --downloadonly will download all available updates for the system you're on for the repos you have configured and they will be placed in /var/cache/dnf/updates-<some hex string>/packages).

Out of curiosity, does your friend not have internet access or are you worried that the kernel will not support their hardware out of the box? Or something else altogether?

edit flag offensive delete link more

Comments

Thanks for this info, but could you please tell me the next part, what command do i use to actually install ALL these updates on another computer once I have them downloaded?

I will copy the folder to a USB stick and bring it with me to my friends house. I assume once I have installed her the ISO of Fedora24 I can copy this folder into the same location on her machine, but what then?

To answer your question, my friend does not have proper internet access. She is in a remote location and relies on TERRIBLE french mobile phone tethering with a crazy low data allowance.

THANKS!

David-LDA gravatar imageDavid-LDA ( 2016-07-05 05:29:35 -0500 )edit

You can just point dnf at the *.rpm files. For example, if they're in /some/dir, then dnf install /some/dir/*.rpm

pinecone gravatar imagepinecone ( 2016-07-05 11:40:58 -0500 )edit

Awesome, thanks!

If i add the repos that the rpm's came from originally after, will they will still be able to update themselves when i do a dnf update? Or maybe they will just know where they came from and add the repos themselves?

David-LDA gravatar imageDavid-LDA ( 2016-07-05 12:05:54 -0500 )edit

Sorry, work was insanely busy for me for the last few days.

My guess would be that if you use the package manger to install them, then it will be "aware" of them and look for updates when you run dnf upgrade. If it doesn't initially recognize them when you try to update everything, then I would try running dnf install <package> for a specific package. It will either notice that the package is already there and up to date or reinstall it (hopefully the former).

pinecone gravatar imagepinecone ( 2016-07-09 12:52:06 -0500 )edit

what about if the machines don't have the same specs? I mean, there should be an easier (web based) way of download offline upgrades (not talking about systemd offline updates here). I'm a bit surprised...

fedoramonsecond gravatar imagefedoramonsecond ( 2016-10-08 05:29:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-07-04 16:58:42 -0500

Seen: 1,180 times

Last updated: Jul 04 '16