To obtain a local copy you can simply git clone the repository for the release you are interested in as shown below. The source for each release is maintained in its own git repository on. apt-get source linux-image-unsigned-$(uname -r)Īll of the Ubuntu Kernel source is maintained under git.For example to obtain the source for the currently running kernel you can use the command: The source code which generated a specific binary package may be obtained using the apt-get source command. However, if you wish to get the most up to date sources for the Ubuntu release you are running and make changes to that, use the git method (described below) to obtain the sources. If you have installed a version of Ubuntu and you want to make changes to the kernel that is installed on your system, use the apt-get method (described below) to obtain the sources. The two main ways will be documented here. There are a number of different ways of getting the kernel sources. Obtaining the source for an Ubuntu release For example, on Disco Dingo you should have: The above command requires your system to have the correct deb-src lines in /etc/apt/sources.list. If you are going to be using git, install it via:
0 Comments
Leave a Reply. |