Skip to content

Instantly share code, notes, and snippets.

@johnpmitsch
Last active March 14, 2018 17:34
Show Gist options
  • Save johnpmitsch/fe3e13f62b727b750adc1ac1705d7682 to your computer and use it in GitHub Desktop.
Save johnpmitsch/fe3e13f62b727b750adc1ac1705d7682 to your computer and use it in GitHub Desktop.
SUSE - install katello-agent and client tools without dependencies
#!/usr/bin/ruby
# install all rpm files from katello client repos without dependencies
# TODO; get these files from the URL
files = [
"gofer-2.7.6-1.el7.noarch.rpm",
"katello-client-repos-3.5.1-1.el7.noarch.rpm",
"katello-client-repos-latest.rpm",
"katello-host-tools-3.1.0-1.el7.noarch.rpm",
"katello-host-tools-fact-plugin-3.1.0-1.el7.noarch.rpm",
"pulp-rpm-handlers-2.13.4-1.el7.noarch.rpm",
"python-amqp-1.4.9-1.el7.noarch.rpm",
"python-gofer-2.7.6-1.el7.noarch.rpm",
"python-gofer-amqp-2.7.6-1.el7.noarch.rpm",
"python-gofer-proton-2.7.6-1.el7.noarch.rpm",
"python-gofer-qpid-2.7.6-1.el7.noarch.rpm",
"python-isodate-0.5.0-4.pulp.el7.noarch.rpm",
"python-pulp-agent-lib-2.13.4-1.el7.noarch.rpm",
"python-pulp-common-2.13.4-1.el7.noarch.rpm",
"python-pulp-rpm-common-2.13.4-1.el7.noarch.rpm",
"python-saslwrapper-0.22-5.el7.x86_64.rpm",
"katello-agent-3.1.0-1.el7.noarch.rpm",
"saslwrapper-0.22-5.el7.x86_64.rpm"
]
files.each do |file|
package = file.split(".")[0].split("-").reverse.drop(1).reverse.join("-")
puts "\ninstalling #{package} (file name is #{file})"
# uncomment to remove packages
#`rpm -e #{package} --nodeps`
# remove --nodeps to find dependency issues
`rpm -Uvh https://fedorapeople.org/groups/katello/releases/yum/3.5/client/el7/x86_64/#{file} --nodeps`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment