Skip to content

Instantly share code, notes, and snippets.

@nmische
Created September 10, 2014 22:48
Show Gist options
  • Save nmische/19e7af74aee16a8c68d2 to your computer and use it in GitHub Desktop.
Save nmische/19e7af74aee16a8c68d2 to your computer and use it in GitHub Desktop.
Rename oracle jdk package

Using a Vagrant box (chef/centos-7.0) as the build server:

$ yum install rpm-build

... get rpmrebuild rpm from sourceforge

$ rpm -Uvh rpmrebuild-2.11-1.noarch.rpm

... get oracle jdk rpm from oracle

$ rpmrebuild --define "_rpmfilename jdk8.rpm" --change-spec-preamble='sed -e "s/^Name:.*/Name: jdk8/"' --package jdk-8u20-linux-x64.rpm

@spn
Copy link

spn commented May 10, 2016

Great script! Saved me hours of work. Thank you!

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