Edit and create deb package


1. Unpack the Deb with the following line
mkdir temp; dpkg-deb –extract mypack.deb temp

What is being done to the left of the, is to create a directory
where temporary unpacking the deb. On the right, is specified
that unpacking the deb in the directory you created earlier.

2. Now extracting control package temporary / DEBIAN with the following line:
dpkg-deb –control mypack.deb temp/DEBIAN

3. Now edit the temporary file / DEBIAN / control changes fights that we want.

4. The repackaging. Deb with the following line:
dpkg –build temp; get your new pack.deb

5. Now we can install our new package with the command
sudo dpkg -i mypack.deb

  1. No comments yet.
(will not be published)