Skip to content

Instantly share code, notes, and snippets.

@op-ct
Last active August 18, 2016 20:00
Show Gist options
  • Save op-ct/c031b2f66d52f5116f92097f95ccc2d1 to your computer and use it in GitHub Desktop.
Save op-ct/c031b2f66d52f5116f92097f95ccc2d1 to your computer and use it in GitHub Desktop.
repoclosure `-n` stands for `--nonsense`
### These are the logstash packages in the repos:
# chris  shemp  tmp  d20160818-15958-7zs5e2  $  find . -name logstash\*rpm
./repos/base/logstash-contrib-1.4.2-1_efd53ef.noarch.rpm
./repos/base/logstash-1.4.2-1_2c0f5a1.noarch.rpm
### This fails because it can't resolve `logstash < 0:1.4.3`
# chris  shemp  tmp  d20160818-15958-7zs5e2  $  repoclosure -c repodata -t -r base -l lookaside -c yum.conf -n
Reading in repository metadata - please wait....
Checking Dependencies
Repos looked at: 2
base
lookaside
Num Packages in Repos: 1758
package: logstash-contrib-1.4.2-1_efd53ef.noarch from base
unresolved deps:
logstash < 0:1.4.3
### It works without `-n` (`newest`):
# chris  shemp  tmp  d20160818-15958-7zs5e2  $  repoclosure -c repodata -t -r base -l lookaside -c yum.conf
Reading in repository metadata - please wait....
Checking Dependencies
Repos looked at: 2
base
lookaside
Num Packages in Repos: 1768
### These are the RPM version/requires details:
chris  shemp  tmp  d20160818-15958-7zs5e2  $  rpm -qip --requires ./repos/base/logstash-1.4.2-1_2c0f5a1.noarch.rpm ./repos/base/logstash-contrib-1.4.2-1_efd53ef.noarch.rpm
Name : logstash
Version : 1.4.2
Release : 1_2c0f5a1
Architecture: noarch
Install Date: (not installed)
Group : default
Size : 141637420
License : ASL 2.0
Signature : (none)
Source RPM : logstash-1.4.2-1_2c0f5a1.src.rpm
Build Date : Tue 24 Jun 2014 08:41:30 AM EDT
Build Host : oh-my
Relocations : /
Packager : <jls@oh-my>
Vendor : Elasticsearch
URL : http://logstash.net
Summary : An extensible logging pipeline
Description :
An extensible logging pipeline
jre >= 1.6.0
/bin/sh
/bin/sh
/bin/sh
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
Name : logstash-contrib
Version : 1.4.2
Release : 1_efd53ef
Architecture: noarch
Install Date: (not installed)
Group : default
Size : 64067337
License : Apache 2.0
Signature : (none)
Source RPM : logstash-contrib-1.4.2-1_efd53ef.src.rpm
Build Date : Tue 24 Jun 2014 08:42:14 AM EDT
Build Host : oh-my
Relocations : /opt/logstash
Packager : <jls@oh-my>
Vendor : Elasticsearch
URL : https://github.com/elasticsearch/logstash-contrib
Summary : Community supported plugins for Logstash
Description :
Community supported plugins for Logstash
logstash >= 1.4.2
logstash < 1.4.3
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
### Just checking:
# chris  shemp  tmp  d20160818-15958-7zs5e2  $  /usr/bin/rpmdev-vercmp logstash 1.4.2 1_2c0f5a1 logstash 1.4.3 0
logstash:1.4.2-1_2c0f5a1 < logstash:1.4.3-0
# chris  shemp  tmp  d20160818-15958-7zs5e2  $  /usr/bin/rpmdev-vercmp logstash 1.4.2 1_2c0f5a1 logstash 1.4.2 0
logstash:1.4.2-1_2c0f5a1 > logstash:1.4.2-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment