Comments on: Modifying an existing Debian package: grep https://www.theo-andreou.org/?p=1112 Just another boring linux blog Sun, 29 Sep 2019 12:28:47 +0000 hourly 1 https://wordpress.org/?v=5.4.2 By: Ikem https://www.theo-andreou.org/?p=1112#comment-13644 Fri, 23 Feb 2018 10:47:03 +0000 http://www.theo-andreou.org/?p=1112#comment-13644

Get the source from the debian repos

“apt-get source grep” combines this two steps:

$ dget http://cdn.debian.net/debian/pool/main/g/grep/grep_2.21-1.dsc

$ dpkg-source -x grep_2.21-1.dsc

Rebuild the modified package

I use “dpkg-buildpackage” to avoid to install “debuild”:

$ dpkg-buildpackage -us -uc

]]>