Skip to content

Instantly share code, notes, and snippets.

@derjohn
Created September 29, 2022 14:09
Show Gist options
  • Save derjohn/ebfdfcf557e1d7dd96bc77446a2d9299 to your computer and use it in GitHub Desktop.
Save derjohn/ebfdfcf557e1d7dd96bc77446a2d9299 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Virtualmin Package not working on older debian ?
# They packed the .deb with "xz" fragments inside, older debian debs don't understand deb + xz
# Repack them als gzip
# Example webmin-virtual-server_7.2.gpl-1_all.deb for debian wheezy
ar x webmin-virtual-server_7.2.gpl-1_all.deb
xz -d control.tar.xz
xz -d data.tar.xz
gzip control.tar
gzip data.tar
ar r webmin-virtual-server_7.2.gpl-1_all.deb debian-binary control.tar data.tar
dpkg -i webmin-virtual-server_7.2.gpl-1_all.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment