Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show URLs for downloaded packages #2030

Closed
birdie-github opened this issue Dec 24, 2023 · 3 comments
Closed

Show URLs for downloaded packages #2030

birdie-github opened this issue Dec 24, 2023 · 3 comments

Comments

@birdie-github
Copy link

Is there an easy way to get the URLs for the downloaded packages in DNF?

What I'm trying to achieve: I'm currently on a very expensive Internet plan, so I need to get links, download packages on a different connection and feed them to DNF.

I've not found anything relevant in man dnf.

@simmon-nplob
Copy link

simmon-nplob commented Dec 24, 2023

For confirmed fedora mirror such as the relevant repository, please refer to the relevant URL.
https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-39&arch=x86_64

fedora 39 dnf part:
https://dl.fedoraproject.org/pub/fedora/linux/releases/39/Everything/source/tree/Packages/d/
https://dl.fedoraproject.org/pub/fedora/linux/releases/39/Everything/source/tree/Packages/d/dnf-4.18.0-2.fc39.src.rpm

You can get help with dnf usage instructions:

 # dnf --help

Have a fun! merry christmas & happy new year!

@birdie-github
Copy link
Author

This is not what I meant.

E.g.

# dnf update 'kernel*'
Dependencies resolved.
================================================================================
 Package                  Arch        Version                Repository    Size
================================================================================
Installing dependencies:
 kernel                   x86_64      6.6.8-200.fc39         updates      155 k
 kernel-core              x86_64      6.6.8-200.fc39         updates       16 M
 kernel-modules           x86_64      6.6.8-200.fc39         updates       58 M
 kernel-modules-core      x86_64      6.6.8-200.fc39         updates       32 M

Transaction Summary
================================================================================
Install  4 Packages

Total download size: 106 M
Installed size: 153 M
Is this ok [y/N]:

Now I want to get the exact URLs for these four packages to feed them to e.g. wget running on a different device.

@jan-kolarik
Copy link
Member

Hi, you can use either dnf repoquery <pkg> --location or dnf download <pkg> --url (from dnf-plugins-core package) to list urls where a package could be downloaded from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants