How To Install gitolite3 on CentOS 7
Introduction
In this tutorial we learn how to install gitolite3
on CentOS 7.
What is gitolite3
Gitolite allows a server to host many git repositories and provide access to many developers, without having to give them real userids on the server. The essential magic in doing this is ssh’s pubkey access and the authorized keys file, and the inspiration was an older program called gitosis. Gitolite can restrict who can read from (clone/fetch) or write to (push) a repository. It can also restrict who can push to what branch or tag, which is very important in a corporate environment. Gitolite can be installed without requiring root permissions, and with no additional software than git itself and perl. It also has several other neat features described below and elsewhere in the doc/ directory.
We can use yum
or dnf
to install gitolite3
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install gitolite3.
Install gitolite3 on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install gitolite3
using yum
by running the following command:
Install gitolite3 on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install gitolite3
using dnf
by running the following command:
How To Uninstall gitolite3 on CentOS 7
To uninstall only the gitolite3
package we can use the following command:
References
Summary
In this tutorial we learn how to install gitolite3
on CentOS 7 using yum
and dnf
.