Ask Your Question
1

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
zsh-5.4.1-2.fc27.x86_64
root# dnf download --url zsh
https://ams.edge.kernel.org/fedora-buffet/fedora/linux/updates/27/x86_64/Packages/z/zsh-5.4.1-3.fc27.x86_64.rpm
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
https://ams.edge.kernel.org/fedora-buffet/fedora/linux/updates/27/x86_64/Packages/z/zsh-5.4.1-3.fc27.x86_64.rpm
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
1

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

Comments

  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 https://ams.edge.kernel.org/fedora-bu...64/Packages/z/ 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
0

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

Comments

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                                        
rsync://mirrors.up.pt/pub/fedora/releases/27/Everything/x86_64/os/Packages/z/zsh-5.4.1-1.fc27.x86_64.rpm
# 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
http://mirror.switch.ch/ftp/mirror/fedora/linux/updates/27/x86_64/Packages/z/zsh-5.4.1-3.fc27.x86_64.rpm
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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 164 times

Last updated: May 11