Quick Tip: Screenfetch Installation in CentOS Linux

If you haven’t install screenfetch, you will normally see a command not found error message something like this below:

[root@CentOS-Server ~]# screenfetch
bash: screenfetch: command not found…

Steps in Installing Screenfetch in CentOS Linux

1. Install Git

yum install git

Sample Output:
[root@CentOS-Server ~]# yum install git
Last metadata expiration check: 2:23:47 ago on Mon 29 Mar 2021 12:45:50 PM +08.
Dependencies resolved.
===================================================================================================================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================================================================================================================
Installing:
git x86_64 2.27.0-1.el8 appstream 164 k
Installing dependencies:
git-core-doc noarch 2.27.0-1.el8 appstream 2.5 M
perl-Error noarch 1:0.17025-2.el8 appstream 46 k
perl-Git noarch 2.27.0-1.el8 appstream 77 k
perl-TermReadKey x86_64 2.37-7.el8 appstream 40 k

Transaction Summary
===================================================================================================================================================================================================================
Install 5 Packages
Total download size: 2.8 M
Installed size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): perl-Error-0.17025-2.el8.noarch.rpm 2.0 MB/s | 46 kB 00:00
(2/5): git-2.27.0-1.el8.x86_64.rpm 5.8 MB/s | 164 kB 00:00
(3/5): perl-Git-2.27.0-1.el8.noarch.rpm 9.8 MB/s | 77 kB 00:00
(4/5): perl-TermReadKey-2.37-7.el8.x86_64.rpm 9.2 MB/s | 40 kB 00:00
(5/5): git-core-doc-2.27.0-1.el8.noarch.rpm 19 MB/s | 2.5 MB 00:00
——————————————————————————————————————————————————————————————————————-
Total 4.7 MB/s | 2.8 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-TermReadKey-2.37-7.el8.x86_64 1/5
Installing : perl-Error-1:0.17025-2.el8.noarch 2/5
Installing : git-core-doc-2.27.0-1.el8.noarch 3/5
Installing : perl-Git-2.27.0-1.el8.noarch 4/5
Installing : git-2.27.0-1.el8.x86_64 5/5
Running scriptlet: git-2.27.0-1.el8.x86_64 5/5
Verifying : git-2.27.0-1.el8.x86_64 1/5
Verifying : git-core-doc-2.27.0-1.el8.noarch 2/5
Verifying : perl-Error-1:0.17025-2.el8.noarch 3/5
Verifying : perl-Git-2.27.0-1.el8.noarch 4/5
Verifying : perl-TermReadKey-2.37-7.el8.x86_64 5/5
Installed products updated.

Installed:
git-2.27.0-1.el8.x86_64 git-core-doc-2.27.0-1.el8.noarch perl-Error-1:0.17025-2.el8.noarch perl-Git-2.27.0-1.el8.noarch perl-TermReadKey-2.37-7.el8.x86_64

Complete!

2. Git Clone from Github

git clone git://github.com/KittyKatt/screenFetch.git screenfetch

Sample Output:
[root@CentOS-Server ~]# git clone git://github.com/KittyKatt/screenFetch.git screenfetch
Cloning into ‘screenfetch’…
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 4175 (delta 20), reused 13 (delta 7), pack-reused 4137
Receiving objects: 100% (4175/4175), 4.38 MiB | 3.64 MiB/s, done.
Resolving deltas: 100% (2408/2408), done.

3. Copy the screenfetch file to /usr/bin/ folder

cp screenfetch/screenfetch-dev /usr/bin/screenfetch

Sample Output:
[root@CentOS-Server ~]# cp screenfetch/screenfetch-dev /usr/bin/screenfetch
[root@CentOS-Server ~]#

4. Make the file executable

chmod +x /usr/bin/screenfetch

Sample Output:
[root@CentOS-Server ~]# chmod +x /usr/bin/screenfetch
[root@CentOS-Server ~]#

 

5. Run

screenfetch

Sample Output:

About the author

Free Linux

View all posts

Leave a Reply