Categories
SysOps

How to get package URL on CentOS

Sometimes I need to get the package URL on CentOS to store it using Nexus Repository Manager. At first glance, it is not very obvious how to display package URLs, but the actual process is very simple.

Use yumdownloader from yum-utils package to get package URL.

$ yumdownloader --quiet --cacheonly --urls graylog-server
https://packages.graylog2.org/repo/el/stable/4.0/x86_64/graylog-server-4.0.5-1.noarch.rpm