What is zypper equivalent of apt-get install --print-uris

On Kubuntu I was able to do apt-get install --print-uris to find out the URLs from where the packages would be downloaded. I’d like to know if there is a zypper equivalent. I checked man zypper for URI and URL but it wasn’t found…

I knew “zypper lr” would list the repos and then looking in the man page I found:

   -u, --uri
          Add base URI column to the output.

So try a “zypper lr --uri”.

Looks like your search is not working :wink:

Hi
Just add the verbose option to your search, eg;


zypper se -v kernel-source

S | Name                  | Type    | Version    | Arch   | Repository       
--+-----------------------+---------+------------+--------+------------------
  | kernel-source         | package | 3.16.6-2.1 | noarch | openSUSE-13.2-Oss
           name: kernel-source
  | kernel-source-vanilla | package | 3.16.6-2.1 | noarch | openSUSE-13.2-Oss
           name: kernel-source-vanilla

You might want to peruse the man page or run zypper by itself for targeted help on a command line switch :wink:

On 2014-12-05 19:26, jamadagni wrote:
>
> On Kubuntu I was able to do apt-get install --print-uris to find out
> the URLs from where the packages would be downloaded. I’d like to know
> if there is a zypper equivalent. I checked man zypper for URI and URL
> but it wasn’t found…

No.

You can list the repos for the available packages, on a search. From the
name of the repo you can find out the “root” URL of the repo, but each
repo has some directories, for the different architectures
(32/64/noarch). So no, an exact location you do not get.

And not even in verbose mode (zypper --verbose install something") does
it report the url. Only the repo.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

https://wiki.archlinux.org/index.php/Pacman_Rosetta

On 2014-12-06 00:26, jetchisel wrote:
>
> https://wiki.archlinux.org/index.php/Pacman_Rosetta

Interesting…


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Thanks for the info… I can use it to translate the Android instructions that always assume you are using Ubuntu. I refuse to give up my SuSE.
-Chuck