Gangmax Blog

自由之思想,独立之精神

Download Package Source Code via Apt-get

| Comments

From here and here.

First, open “software-properties-gtk”, go to the “Ubuntu Software” tab, check the “Source code” checkbox. Without this step you will get an error “You must put some ‘source’ URIs in your sources.list” in the next step.

Run the following command to download source code of a given package:

1
2
3
apt-get source python
# or:
apt source apt

Comments