Skip to content

Instantly share code, notes, and snippets.

@jeansymolanza
Created February 6, 2020 15:06
Show Gist options
  • Save jeansymolanza/9c112fe2e3431d8116bb2a0deb6889d0 to your computer and use it in GitHub Desktop.
Save jeansymolanza/9c112fe2e3431d8116bb2a0deb6889d0 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
rpmbuild -ba ~/rpmbuild/SPECS/rocket-unidata-8.1.2.spec
if [ $(rpm -qa | grep -i rocket-unidata-8.1.2-1.x86_64) ]; then
sudo rpm -e rocket-unidata-8.1.2-1.x86_64
fi
sudo rpm -ivh --nodeps ~/rpmbuild/RPMS/x86_64/rocket-unidata-8.1.2-1.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment