Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Use rpm2cpio
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Guerrero committed Sep 25, 2020
1 parent f72c6ee commit 42eccef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions concourse/scripts/generate_tarball_from_rpm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ function fail() {
rpm_file_name=$(find pxf_artifacts/licensed -type f -name "pxf-gp${GP_VER}-*-2.el${TARGET_OS_VERSION}.x86_64.rpm")
[[ -f ${rpm_file_name} ]] || fail "pxf_artifacts/licensed/pxf-gp${GP_VER}-*-2.el${TARGET_OS_VERSION}.x86_64.rpm not found"

# install the new RPM
rpm -iv "$rpm_file_name"
# extract RPM
build_dir=${PWD}
pushd /
rpm2cpio "${build_dir}/${rpm_file_name}" | cpio -idm
popd
echo "listing installed directory /usr/local/pxf-gp${GP_VER}:"
ls -al "/usr/local/pxf-gp${GP_VER}"

Expand Down

0 comments on commit 42eccef

Please sign in to comment.