![cover](https://img-blog.csdnimg.cn/7031e802b64240ec9c5d93d23df9a3fd.jpeg)
重庆思庄Linux技术分享-redhat linux上如何下载Gitee上的软件
重庆思庄Linux技术分享-redhat linux上如何下载Gitee上的软件
在redhat linux 上 想下载Gitee上的源码,其实非常方便,不需要注册Gitee 账号,只需要有软件地址即可。
比如,我想下载 opengauss 的第三方软件的源码,地址为: openGauss-third_party: openGauss third party libraries
只需要安装 git 软件 即可
yum install -y git
git clone openGauss-third_party: openGauss third party libraries
具体操作如下:
[root@ogserver 3Fang]# yum install git
Last metadata expiration check: 0:37:03 ago on Mon 21 Nov 2022 02:41:21 AM EST.
Dependencies resolved.
=======================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================
Installing:
git x86_64 2.31.1-2.el9.2 appstream 120 k
Installing dependencies:
emacs-filesystem noarch 1:27.2-6.el9 appstream 8.4 k
git-core x86_64 2.31.1-2.el9.2 appstream 3.6 M
git-core-doc noarch 2.31.1-2.el9.2 appstream 2.3 M
。。。
Installing weak dependencies:
perl-IO-Socket-SSL noarch 2.073-1.el9 appstream 216 k
perl-Mozilla-CA noarch 20200520-6.el9 appstream 12 k
perl-NDBM_File x86_64 1.15-479.el9 appstream 31 k
Transaction Summary
=======================================================================================================================
Install 67 Packages
Total download size: 13 M
Installed size: 57 M
Is this ok [y/N]: y
Downloading Packages:
(1/67): emacs-filesystem-27.2-6.el9.noarch.rpm 42 kB/s | 8.4 kB 00:00
(2/67): git-2.31.1-2.el9.2.x86_64.rpm 263 kB/s | 120 kB 00:00
(3/67): perl-AutoLoader-5.74-479.el9.noarch.rpm 213 kB/s | 30 kB 00:00
(4/67): perl-B-1.80-479.el9.x86_64.rpm 1.0 MB/s | 188 kB 00:00
...
(67/67): perl-vars-1.05-479.el9.noarch.rpm 79 kB/s | 22 kB 00:00
-----------------------------------------------------------------------------------------------------------------------
Total 523 kB/s | 13 MB 00:25
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : git-core-2.31.1-2.el9.2.x86_64 1/67
Installing : git-core-doc-2.31.1-2.el9.2.noarch 2/67
。。。
Verifying : perl-vars-1.05-479.el9.noarch 67/67
Installed:
emacs-filesystem-1:27.2-6.el9.noarch git-2.31.1-2.el9.2.x86_64
git-core-2.31.1-2.el9.2.x86_64 git-core-doc-2.31.1-2.el9.2.noarch
perl-AutoLoader-5.74-479.el9.noarch perl-B-1.80-479.el9.x86_64
perl-Carp-1.50-460.el9.noarch perl-Class-Struct-0.66-479.el9.noarch
perl-Data-Dumper-2.174-462.el9.x86_64 perl-Digest-1.19-4.el9.noarch
perl-Digest-MD5-2.58-4.el9.x86_64 perl-DynaLoader-1.47-479.el9.x86_64
...
perl-vars-1.05-479.el9.noarch
Complete!
[root@ogserver 3Fang]# git clone openGauss-third_party: openGauss third party libraries
Cloning into 'openGauss-third_party'...
remote: Enumerating objects: 3274, done.
remote: Counting objects: 100% (254/254), done.
remote: Compressing objects: 100% (160/160), done.
remote: Total 3274 (delta 146), reused 113 (delta 88), pack-reused 3020
Receiving objects: 100% (3274/3274), 2.34 GiB | 4.63 MiB/s, done.
Resolving deltas: 100% (1504/1504), done.
Updating files: 100% (400/400), done.
[root@ogserver 3Fang]# ls -ltr
total 4
drwxr-xr-x. 10 root root 4096 Nov 21 03:28 openGauss-third_party
[root@ogserver 3Fang]# cd openGauss-third_party/
[root@ogserver openGauss-third_party]# ls
build CONTRIBUTING.md OpenSource.yml source_code.py
buildtools dependency platform Third_Party_Open_Source_Software_List.yaml
component gpl_dependency README.md Third_Party_Open_Source_Software_Notice
[root@ogserver openGauss-third_party]# ls -ltr
total 484
-rw-r--r--. 1 root root 440577 Nov 21 03:28 Third_Party_Open_Source_Software_Notice
-rw-r--r--. 1 root root 3481 Nov 21 03:28 Third_Party_Open_Source_Software_List.yaml
-rw-r--r--. 1 root root 5594 Nov 21 03:28 README.md
-rw-r--r--. 1 root root 16822 Nov 21 03:28 OpenSource.yml
-rw-r--r--. 1 root root 2402 Nov 21 03:28 CONTRIBUTING.md
drwxr-xr-x. 2 root root 140 Nov 21 03:28 build
drwxr-xr-x. 8 root root 74 Nov 21 03:28 component
drwxr-xr-x. 6 root root 98 Nov 21 03:28 buildtools
drwxr-xr-x. 58 root root 4096 Nov 21 03:28 dependency
drwxr-xr-x. 5 root root 69 Nov 21 03:28 gpl_dependency
drwxr-xr-x. 8 root root 118 Nov 21 03:28 platform
-rw-r--r--. 1 root root 8625 Nov 21 03:28 source_code.py
[root@ogserver openGauss-third_party]#
![Logo](https://devpress.csdnimg.cn/79de2bf0b7994defa4242ef90d5513fa.jpg)
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)