As a non-root user, I want to install git (version = 2.38.1-1) on a shared host CentOS 7 server because the original version of git on the host is too old. I tried to use the method in this answer to install git from the file git-2.38.1-1.ep7.x86_64.rpm.
- I use
wgetcommand to download filegit-2.38.1-1.ep7.x86_64.rpmon the host. - I use command
rpm -ivh git-2.38.1-1.ep7.x86_64.rpmto check whether some dependencies are lack. The output is as follow.
And I downloadwarning: git-2.38.1-1.ep7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 703df089: NOKEY error: Failed dependencies: git-core = 2.38.1-1.ep7 is needed by git-2.38.1-1.ep7.x86_64 git-core-doc = 2.38.1-1.ep7 is needed by git-2.38.1-1.ep7.x86_64 perl-Git = 2.38.1-1.ep7 is needed by git-2.38.1-1.ep7.x86_64git-core-2.38.1-1.ep7.x86_64.rpm,git-core-doc-2.38.1-1.ep7.noarch.rpm, andperl-Git-2.38.1-1.ep7.noarch.rpmrespectively. - And I also use
rpm -ivh package_nameto check some lack dependencies. However, the output forperl-Git-2.38.1-1.ep7.noarch.rpmis
It is impossible for me to installgit = 2.38.1-1.ep7 is needed by perl-Git-2.38.1-1.ep7.noarchperl-Gitunder the lack ofgit.
Are there any mistakes during my installation process? Is there any convenient method to intall some softwares for non-root users on the shared host?