Git
Git is a distributed version control system (DVCS) that is widely used in software development and other fields where version management is essential.
It was created by Linus Torvalds in 2005 and is open source, which means it's freely available and widely adopted in both open source and commercial software development.
Check your OS
This step is optional. It's just to make sure you have Fedora
installed.
/etc/os-release
cat /etc/os-release
hostnamectl
hostnamectl
Output
When you run hostnamectl
without any options, it provides detailed information about the system's hostname, operating system, kernel, and other system-related settings.
lsb_release
lsb_release -a
Output
lsb_release
is a command-line utility commonly found in Linux distributions that adhere to the Linux Standard Base (LSB). The LSB is a standardization initiative that aims to increase compatibility between different Linux distributions by defining a common set of libraries and conventions.
uname
uname -a
Output
The uname -a
command is used to display detailed system information about the Linux operating system. It provides information about the system's kernel and other system-related details.
Let's get down to business
shall we?
Solution
Open the terminal
Update Fedora
Although It's a good practice to ensure your system is up-to-date before installing new software, this is an optional step.
sudo dnf update
Install git
sudo dnf install git
You'll be prompted to enter and confirm the installation.
Output
Check installation
Version
git --version
Output
Executable file's path
which git
Output
Run git
git
Output
Done
Celebrate
Let's become friends
Final thoughts
Thank you for reading this article.
If you have any questions, thoughts, suggestions, or corrections, please share them with us.
We appreciate your feedback and look forward to hearing from you.
Feel free to suggest topics for future blog articles. Until next time!