In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install and uninstall software or operating system for Ubuntu Git. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Ubuntu Git is an open source repository (Rep version control software) developed by Linu Torvalds (the father of Lxinux) to help manage Linux kernel development, which is different from centralized version control systems such as Subversion and CVS. In centralized version control systems, there are only ository and many working directories (Working Copy), while in distributed version control systems such as Git (other major distributed version control systems include BitKeeper, Mercurial, GNU Arch, Bazaar, Darcs, SVK, Monotone, etc.), each working directory contains a complete repository that supports offline work, and local submissions can be submitted to the server later.
Because Android is composed of Kernel, Dalvik, Bionic, Prebuilt, build and other projects, it is troublesome if we use Ubuntu Git to get one by one, so the Android project wrote a script named Repo Python to manage the warehouse of these projects, making the acquisition of the project easier.
To install Ubuntu Git on Ubuntu 8.04, you only need to set the correct update source, and then use apt-get. Apt-get is a Linux command that is used to automatically search, install, upgrade, and uninstall software or operating systems from the Internet's software repositories.
The apt-get command generally requires root permission to execute, so it usually follows the sudo command.
Sudo apt-get install git-core curl
This command installs git-core and curl from the Internet's software repository.
Curl is a file transfer tool that uses URL syntax to work on the command line. It supports many protocols, including FTP, FTPS, HTTP, HTTPS, TELENT and so on. We need to install it to get Repo script files from the network.
Curl http://android.git.kernel.org/repo > ~ / bin/repo
This command downloads the repo script file to the / bin directory in the current home directory and saves it in the file repo.
* We need to give repo file executable permissions chmod axix ~ / bin/repo
Then we can use repo scripts and Ubuntu Git, curl software to obtain the source code of Android:
First create a directory, such as ~ / android. Then use the following command to get the source code:
Repo init-u git://android.git.kernel.org/platform/manifest.git
This process will take a long time (the author has downloaded it for a day). After downloading, you will see a prompt such as repo initialized in / android, indicating that the local version library has been initialized and contains the current * * sourcecode. If we want to take a branch version of the code instead of the mainline code, we need to use the-b parameter to specify the name of the branch, such as:
Repo init-u git://android.git.kernel.org/platform/manifest.git-b cupcake
If we just want to get the code of a certain project, such as kernel/common, we don't need the repo script, just use the Ubuntu Git tool. If we study the repo script carefully, we will find that the repo script is actually organizing the Ubuntu Git tool to obtain each Project and organize them into the same project Android.
Git clone git://android.git.kernel.org/kernel/common.git
We used the repo script above to get each project, so then we need to synchronize the entire Android code tree locally, as follows:
Repo sync project1 project2...
This is the end of this article on "how to install and uninstall software or operating system for Ubuntu Git". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.