Creating rpm package from java tarball: jdk*.tag.gz

In order to create from java installation tarball a rpm package I procedeed following steps. As example I have used jdk-8u161-linux-x64.tar.gz file from oracle download portal. 1. Installing rpmbuild package from yum repository: yum install rpmbuild -y 2. Creating directories for rpmbuild: mkdir -p packages/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} 3. Place jdk-8u161-linux-x64.tar.gz in $RPM_SOURCE_DIR (packages/SOURCES) 4. Creating a spec … Continue reading Creating rpm package from java tarball: jdk*.tag.gz

Advertisements

Add and enable custom yum repo files

In order to manage yum package manager firt of all we shoul install yum-config-manager. It is included in yum-util package. yum install yum-utils If you have some special custom repostitory and you should active it run the following command: yum localinstall repo_name.repo Adding and activating repository are following commands accordingly: yum-config-manager --add-repo repo-name.repo yum-config-manager --enable … Continue reading Add and enable custom yum repo files