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