How to repack a package into .deb file

First find the name of package you want to install and run command on which it depends.

Command is: apt-cache rdepends package-name

With this, you will get the list of packages. Add this list to file and run.

command is :

while read file
do
sudo dpkg-repack file
done>filename

where filename is file containing list of packages. Then take the folder containing all packages into your system then change the path to directory containing that folder and run command sudo dpkg -i * .deb

to unpack and

sudo apt-get -f install

to install all missing packages that were dependend and are unable  to install will unpacking.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s