Question 3.19: Sometimes Python libraries and other software are supplied v......

Sometimes Python libraries and other software are supplied via a Git repository URL. You need to be able to fetch them onto your Raspberry Pi.

Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.

To use code in Git repositories, you need to download Git and then use the git clone command to fetch the files.

Discussion

Git is a source code management system. To install it, use the command:

$ sudo apt-get install git

Once Git is installed, you can use the clone command to fetch the source code files you want. If you are doing this into a directory where you have write access, you don’t need to do this as a superuser.

For example, the following command will fetch all the source code examples from this book:

$ git clone https://github.com/simonmonk/raspberrypi_cookbook.git

See Also

Find out more about Git and the Git hosting service GitHub.

See also Recipe 3.16.

Related Answered Questions

Question: 3.34

Verified Answer:

Use the Linux df command: $ df -h Filesystem   ...
Question: 3.33

Verified Answer:

Use the Linux date command. The date and time form...
Question: 3.32

Verified Answer:

Edit the file ~/.bashrc using nano (Recipe 3.6), a...
Question: 3.31

Verified Answer:

Run the program or command in the background using...
Question: 3.30

Verified Answer:

Redirect the output to /dev/null using >. For e...
Question: 3.24

Verified Answer:

Use the Task Manager utility, which you’ll find on...
Question: 3.29

Verified Answer:

Use the pipe command, which is the bar symbol (|) ...
Question: 3.27

Verified Answer:

Use the > command to redirect output that would...
Question: 3.28

Verified Answer:

Use the cat command to concatenate a number of fil...
Question: 3.26

Verified Answer:

Use the lsusb command. This will list all the devi...