You can install a .deb package file onto a system by using dpkg -i filename.deb
.
Is it possible to do the reverse? By reverse, I mean create a .deb package file from an installed package given a package name?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYou can install a .deb package file onto a system by using dpkg -i filename.deb
.
Is it possible to do the reverse? By reverse, I mean create a .deb package file from an installed package given a package name?
Install dpkg-repack package:
sudo apt-get install dpkg-repack
Example usage:- dpkg-repack gparted
replace gparted with your package_name
sudo dpkg-repack vlc
for say the vlc player. however, i do not know about other packages with dependencies and everything else.
Oct 25, 2015 at 12:52
fakeroot -u dpkg-repack gparted
to run it without root privileges, if your user can read all files of the package you want to rebuild.
Mar 7, 2017 at 12:58