How to create a .deb file from installed package?

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