Ask Your Question

how to get url download of an installed package

asked 2018-05-11 08:37:40 -0600

thirtyminutestosignup gravatar image

updated 2018-05-11 08:38:54 -0600

Hi, I need of to get a url download of an installed package. But look:

root# dnf list --installed zsh
Installed packages
zsh.x86_64                 5.4.1-2.fc27                        @updates
root# rpm -q zsh
root# dnf download --url zsh
root# dnf download --url zsh-5.4.1-2
Nessun pacchetto zsh-5.4.1-2 disponibile.
root# dnf download --url zsh-5.4.1-3
Nessun pacchetto zsh-5.4.1-3 disponibile.
Uscita a causa delle impostazioni restrittive.
Errore: Nessun pacchetto zsh-5.4.1-3 disponibile.
root# dnf download --url zsh-5.4.1-3.fc27
root# dnf download --url zsh-5.4.1-2.fc27
Nessun pacchetto zsh-5.4.1-2.fc27 disponibile.
Uscita a causa delle impostazioni restrittive.
Errore: Nessun pacchetto zsh-5.4.1-2.fc27 disponibile.

I just want the download URL of zsh-5.4.1-2 not the 5.4.1-1 and not 5.4.1-3

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-05-11 09:13:01 -0600

ed209 gravatar image

Some hypotheses:

1) As the current zsh package available for F27 has actually version 1-3, it's not available into repos anymore.

2) Try to clean cache with dnf clean all and recreate it

3) The restriction is maybe due to selinux?

edit flag offensive delete link more


  1. I dont' understand why the version 1 is available but not the version 2
  2. cache cleaned nothing was changed
  3. no, the restriction means error under /var/log/dnf.log it's a python error... the exception is the follwoing: dnf.exceptions.PackageNotFoundError: Nessun pacchetto zsh-5.4.1-2.fc27 disponibile. that means package not available.
thirtyminutestosignup gravatar imagethirtyminutestosignup ( 2018-05-11 10:30:15 -0600 )edit

Wait. I don't see any reference to a 1-1 version in your report. Only to 1-2 and 1-3. What I have checked is that in the repo you quoted there is no zsh-5.4.1-2.fc27, as I suspected before, but only zsh-5.4.1-3.fc27.x8664.rpm

So dnf refers only to that particular mirror.

ed209 gravatar imageed209 ( 2018-05-11 17:39:40 -0600 )edit

answered 2018-05-11 09:47:00 -0600

villykruse gravatar image

updated 2018-05-11 12:05:45 -0600

try this koji web site for old builds of zsh. You may be luck to find what you are looking for.

edit flag offensive delete link more


I don't think it's an old packages because the previous versione of the same package is available. Look:

# dnf download --url zsh-5.4.1-1.fc27                                        
# dnf download --url zsh-5.4.1-2.fc27
Nessun pacchetto zsh-5.4.1-2.fc27 disponibile.
# dnf download --url zsh-5.4.1-3.fc27
thirtyminutestosignup gravatar imagethirtyminutestosignup ( 2018-05-11 10:25:54 -0600 )edit

As a tip: Precede your command by LC_ALL-C and you will get th original English messages.

$ LC_ALL=C dnf download --url zsh-5.4.1-2.fc27
Last metadata expiration check: 0:02:44 ago on Fri May 11 19:03:37 2018.
No package zsh-5.4.1-2.fc27 available.
Exiting due to strict setting.
Error: No package zsh-5.4.1-2.fc27 available.
villykruse gravatar imagevillykruse ( 2018-05-11 12:10:17 -0600 )edit

Thank you so much, this is really useful for both.

thirtyminutestosignup gravatar imagethirtyminutestosignup ( 2018-05-11 13:54:10 -0600 )edit

Question Tools

1 follower


Asked: 2018-05-11 08:37:40 -0600

Seen: 275 times

Last updated: May 11 '18