Linux: Acquiring Source Code: Difference between revisions

From BS Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with " asdf")
Tag: Replaced
Line 1: Line 1:
== Acquiring Source Code in Ubuntu (Hirsute) ==
# Update/enable the source package URLs. Note that in Ubuntu, these should already be in the sources.list file and just need to be uncommented. i.e. remove the "#" from the deb-src lines
#:::<code>sudo gedit /etc/apt/sources.list</code>
#::An example line might look like this:
#:::<code>deb-src <nowiki>http://us.archive.ubuntu.com/ubuntu/</nowiki> hirsute main restricted</code>
# Update the new package information that was added in step 1
#:::<code>sudo apt-get update</code>
# Navigate to the directory that the source code will reside in, and download it.
#::Example for downloading the source code for the grep utility
#:::<code>sudo apt-get source grep</code>
#::Example for downloading the source code for bash
#:::<code>sudo apt-get source bash</code>
# There should be a directory with the source code along with some other files. Move to the new directory to view the downloaded source code.
#:::If the directory doesn't exist, run this command on the .dsc file acquired from step 4 above:
#::::<code>dpkg-source -x yourfile.dsc</code>
#:::If you get an error message that dpkg-source can not be found, install the package:
#::::<code>sudo apt install dpkg-dev


See Linux: Compiling and Installing Source Code from the Terminal for compiling and installing.
asdf
----
 
== Acquiring Source Code in Mint 20.1 Cinnamon ==
# Bring up the Software Sources
#:::Menu Button -> Administration -> Software Sources
# Toggle the "Source code repositories" button to enabled state, under Optional Sources
# Press the OK button

Revision as of 15:35, 27 May 2021

asdf