Last active
March 22, 2018 11:43
-
-
Save miketheman/0a3c9e725ba58ceef56e to your computer and use it in GitHub Desktop.
Show direct URL to a pacakge without the repo being enabled, using `repoquery` - http://linux.die.net/man/1/repoquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum install yum-utils | |
Loaded plugins: fastestmirror | |
Loading mirror speeds from cached hostfile | |
* base: mirror.ash.fastserv.com | |
* extras: mirror.lug.udel.edu | |
* updates: mirrors.seas.harvard.edu | |
Setting up Install Process | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package yum-utils.noarch 0:1.1.30-17.el6_5 will be installed | |
--> Finished Dependency Resolution | |
Dependencies Resolved | |
====================================================================================================== | |
Package Arch Version Repository Size | |
====================================================================================================== | |
Installing: | |
yum-utils noarch 1.1.30-17.el6_5 updates 102 k | |
Transaction Summary | |
====================================================================================================== | |
Install 1 Package(s) | |
Total download size: 102 k | |
Installed size: 302 k | |
Is this ok [y/N]: y | |
Downloading Packages: | |
yum-utils-1.1.30-17.el6_5.noarch.rpm | 102 kB 00:00 | |
Running rpm_check_debug | |
Running Transaction Test | |
Transaction Test Succeeded | |
Running Transaction | |
Installing : yum-utils-1.1.30-17.el6_5.noarch 1/1 | |
Verifying : yum-utils-1.1.30-17.el6_5.noarch 1/1 | |
Installed: | |
yum-utils.noarch 0:1.1.30-17.el6_5 | |
Complete! | |
$ cat /etc/yum.repos.d/datadog.repo | |
[datadog] | |
name = Datadog, Inc. | |
baseurl = http://yum.datadoghq.com/rpm/x86_64/ | |
enabled=0 | |
gpgcheck=0 | |
$ repoquery --enablerepo=datadog --location datadog-agent | |
http://yum.datadoghq.com/rpm/x86_64/datadog-agent-4.4.0-88.noarch.rpm | |
http://yum.datadoghq.com/rpm/x86_64/datadog-agent-5.0.0-496.x86_64.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yum-utils
is a useful package, and you may already have it installed. Here's what else you might find. http://yum.baseurl.org/wiki/YumUtils