How to Create a .deb File from Installed Package

aptdpkg

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?

Best Answer

Install dpkg-repack package:

sudo apt-get install dpkg-repack

Example usage:- dpkg-repack gparted

replace gparted with your package_name

http://manpages.ubuntu.com/dpkg-repack.1

Related Question