Ask Your Question

I run "dnf reposync" under root privileges!... What to do?

asked 2017-08-20 09:03:01 -0600

avramoff gravatar image

As I'm from those lazy geeks, who first are trying something, what will happen, and just after bad concurrences may start to read the docs,

After carefully building my own Fedora 26 Workstation for a week, all days long, I had run jsut "su dnf reposync", expecting to "reposync" only the packages on my system, and left the PC for an hour.

There after I got back, all the 61,140 Fedora packages were downloaded on my Laptop PC! All of them!

What can I do from now on, after I have downloaded on my PC all the Fedora's 61 Thousand and 140 packages - probably with the legacy archive since Fedora Core 1?...

Thank you!!!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-08-20 17:01:51 -0600

villykruse gravatar image

You just wasted a lot of download time as the downloaded file is not very useful for you. You may just as well delete all these down loaded files found in the updates directory.

The .ICEauthority file is created by the system and has nothing to do with running the dnf reposync command. I am pretty sure that goes for all the subdirectories in /usr/lib64/ as well.

As a useful trick: run

dnf reposync --help |less

and the result is

usage: dnf reposync [-c [config file]] [-q] [-v] [--version]
                    [--installroot [path]] [--nodocs] [--noplugins]
                    [--enableplugin [plugin]] [--disableplugin [plugin]]
                    [--releasever RELEASEVER] [--setopt SETOPTS]
                    [--skip-broken] [-h] [--allowerasing] [-b] [-C]
                    [-R [minutes]] [-d [debug level]] [--debugsolver]
                    [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
                    [--rpmverbosity [debug level name]] [-y] [--assumeno]
                    [--enablerepo [repo]] [--disablerepo [repo] | --repo
                    [repo]] [-x [package]] [--disableexcludes [repo]]
                    [--repofrompath [repo,path]] [--noautoremove]
                    [--nogpgcheck] [--color COLOR] [--refresh] [-4] [-6]
                    [--destdir DESTDIR] [--downloadonly] [--bugfix]
                    [--enhancement] [--newpackage] [--security]
                    [--advisory ADVISORY] [--bzs BUGZILLA] [--cves CVES]
                    [--sec-severity {Critical,Important,Moderate,Low}]
                    [--forcearch ARCH] [-p DOWNLOAD_PATH]

download all packages from remote repo

optional arguments:
  --disablerepo [repo]
  --repo [repo], --repoid [repo]
                        enable just specific repositories by an id or a glob,
                        can be specified multiple times
  -p DOWNLOAD_PATH, --download-path DOWNLOAD_PATH

It clearly tels you "download all packages from remote repo"

edit flag offensive delete link more

answered 2017-08-20 10:06:09 -0600

avramoff gravatar image

I found out that all the downloaded (only) packages are in /home/my-name-home-folder/updates/, where /updates/ is a new folder, made by the above command. The other new change in my system is a new file, that's been made by "dnf reposync": ~/home/my-name-home-folder/.ICEauthority And the third most annoying thing from "su dnf reposync", is that for every dowloaded repo, there is a folder auto-created in /usr/lib64/ - so, as there are too much new synced repositories, I can't different them from the previous installed ones, and delete them by the easy way, as I can delete the entire directroy /home/my-name-home-directory/updates/

So, it should be made by a command, and while I'm trying to figure it out in that beautiful sunny Sunday on the Balkans, I hope to get any help... Thanks

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-08-20 09:03:01 -0600

Seen: 285 times

Last updated: Aug 20 '17