iT邦幫忙

1

請問 Redhat 6.7 版本如何安裝 git【100$】【已自行解決】

  • 分享至 

  • xImage

使用 sudo yum install git
會跳出

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
file:///media/rh/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/rh/Server/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: my. Please verify its path and try again

但看其他 mirror 好像都被停用支持 6.7 版本了..

This directory (and version of CentOS) is deprecated.  For normal users,
you should use /6/ and not /6.7/ in your path. Please see this FAQ
concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

If you know what you are doing, and absolutely want to remain at the 6.7
level, go to http://vault.centos.org/ for packages. 

Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 , 6.5, 6.6 and 6.7 no longer gets any updates, nor
any security fix's.

請問還有6.7能用的 mirror 或是老版本 redhat 安裝 git 的方式嗎?


終於找到了活著的 mirror 了,用以下命令解決

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-1.8.3.4.tar.gz --no-check-certificate
wget -O git-manpages-1.8.3.4.tar.gz https://mirrors.edge.kernel.org/pub/software/scm/git/git-manpages-1.8.3.4.tar.gz --no-check-certificate

$ tar xvfz git-1.8.3.4.tar.gz
$ cd git-1.8.3.4
$ ./configure
$ make
$ sudo make prefix=/usr install
$ git --version
git version 1.8.3.4
souda iT邦高手 1 級 ‧ 2023-11-23 13:46:08 檢舉
我會建議使用Docker 簡單許多.
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
souda
iT邦高手 1 級 ‧ 2023-11-29 09:28:02
最佳解答

建議您可以這麼做
先安裝Docker & portainer
#docker & portainer
apt install docker.io
docker pull portainer/portainer
docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
再安裝gitlab
docker pull gitlab/gitlab-ce:latest
docker run -d --name gitlab -p 8080:80 --restart always gitlab/gitlab-ce
取得root密碼
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
回到網頁登入

小MIS iT邦研究生 1 級 ‧ 2023-11-29 09:52:51 檢舉

感謝您的補充

laydi21 iT邦新手 5 級 ‧ 2024-06-25 17:57:37 檢舉

Thank you for this information word games

我要發表回答

立即登入回答