Skip to content

Instantly share code, notes, and snippets.

@miketheman
Last active March 22, 2018 11:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miketheman/0a3c9e725ba58ceef56e to your computer and use it in GitHub Desktop.
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
$ 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
@miketheman
Copy link
Author

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

@LotharSee
Copy link

And now, we can browse it directly!
http://yum.datadoghq.com/rpm/x86_64/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment