Last active
October 12, 2020 01:39
-
-
Save thomaswilley/1f109a3936990ac48326faf0fd917c24 to your computer and use it in GitHub Desktop.
How to edit .deb packages in debian/ubuntu (example from getting NICE DCV to work on 20.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unpack the package | |
ar x nice-dcv-viewer_2020.1.1545-1_amd64.ubuntu1804.deb | |
# untar the control info | |
xz -d control.tar.xz | |
tar xf control.tar | |
# edit control (replace libssl dependency with "libssl1.1 (>= 1.0.2~beta3)" | |
vim control # make those edits ^ | |
# tar up the control info | |
tar c postinst postrm shlibs triggers md5sums control | xz -c > control.tar.xz | |
# repackage the package (this time replacing 1804 w/2004) | |
ar rcs nice-dcv-viewer_2020.1.1545-1_amd64.ubuntu2004.deb debian-binary control.tar.xz data.tar.xz | |
# install the new package | |
sudo dpkg --install nice-dcv-viewer_2020.1.1545-1_amd64.ubuntu2004.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment