The Debian/Ubuntu way of doing this:
- Find the executable.
- Find the package.
- Cd into a directory.
- Download the source directly.
Code:
14:26:47 ifokkema@5-HKG-02-0098:~$ which wc
/usr/bin/wc
14:26:56 ifokkema@5-HKG-02-0098:~$ dpkg -S /usr/bin/wc
coreutils: /usr/bin/wc
14:27:12 ifokkema@5-HKG-02-0098:~$ cd src
14:27:25 ifokkema@5-HKG-02-0098:src$ sudo apt-get source coreutils
If you get:
Code:
E: You must put some 'source' URIs in your sources.list
Then you must enable the deb-src lines in your /etc/apt/sources.list file.
HTH
Bookmarks