Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I unpack the libc6 source code on Hardy without building everything?

I run

apt-get source libc6

and I get

$ ls -1d glibc-2.7/*

What I want is the unpacked and patched source code.

Using google find this obsolete blog:

Which says to run:

./debian/rules configure_i686 

But that gives me:

$ ./debian/rules configure_i686
make: *** No rule to make target `configure_i686'.  Stop.

Besides I want to unpack for amd64 (x86_64) not i686 anyway.

So what is the super-secret target for unpacking libc6 via debian/rules?

I do not want to start the build process. I not have the space for that.


share|improve this question

Picking apart makefiles with unusual names using emacs find-grep iteratively eventually uncovered:

./debian/rules unpack
./debian/rules patch
share|improve this answer
The Debian Policy manual specifies patch as an optional rule. All the major advanced deb build suites (the glibc package uses Quilt) provide patch and unpatch targets. – Gilles Oct 28 '10 at 22:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.