1197
Comment:
|
1191
<em></em> replaced by "" and Typo(s)
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Source packages provide you with all of then necessary files to compile or otherwise, build the desired piece of software. | Source packages provide you with all of the necessary files to compile or otherwise, build the desired piece of software. |
Line 4: | Line 4: |
If you have a 'deb-src' entry in your '/etc/apt/sources.list' file, you can get one with 'apt-get source <em>package_name</em>'. You can also use 'apt-get --build source <em>package_name</em>' to automatically build the DebianPackage after download. | If you have a 'deb-src' entry in your '/etc/apt/sources.list' file, you can get one with 'apt-get source "package_name"'. You can also use 'apt-get --build source "package_name"' to automatically build the DebianPackage after download. |
Line 8: | Line 8: |
A source package could generate many .debs. To know the source package name, see the 'Source:' field in 'apt-cache show <em>package_name</em>' output. | A source package could generate many .debs. To know the source package name, see the 'Source:' field in 'apt-cache show "package_name"' output. |
Source packages provide you with all of the necessary files to compile or otherwise, build the desired piece of software.
If you have a 'deb-src' entry in your '/etc/apt/sources.list' file, you can get one with 'apt-get source "package_name"'. You can also use 'apt-get --build source "package_name"' to automatically build the DebianPackage after download.
A source package is downloaded in the current directory and is not installed (it will not appear in the installed package list), so you need not be 'root' to use 'apt-get source'. However you need root privileges or 'fakeroot' to build the .deb.
A source package could generate many .debs. To know the source package name, see the 'Source:' field in 'apt-cache show "package_name"' output.
See ?CopingWithUnstable for an example of how to create a package from source.
If you want to make optimized packages from source to your machine in order to possibly get faster operation, install and use apt-build (which in order uses apt-get source -b ...)
See also [http://julien.danjou.info/article-apt-build.html http://julien.danjou.info/article-apt-build.html]