Text based web browser in RHEL 8 instead of curl

 From Linux terminal we never get any graphical interfaces all we can see text based output. 

usually we used to check any website whether they work or not from Linux terminal we use curl command

[root@centos ~]# curl google.com

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">

<TITLE>301 Moved</TITLE></HEAD><BODY>

<H1>301 Moved</H1>

The document has moved

<A HREF="http://www.google.com/">here</A>.

</BODY></HTML>



//above example successfully executed and got the output 

//to get better visibility of view this web link linux offers a tool call links which is avaliable on debian based operating systems which will allow you to see the web site as text based view of the site. there we can access and view the contend text based

//debian

#apt-get install links

//redhat 

the package name called elinks, this elinks package is available on redhat linux 7 /centos 7 easily but when you going to install the package on redhat 8 / centos 8 then should need to enable "code ready builder" repository 


[root@centos ~]# yum install epel-release
.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Running scriptlet: epel-release-8-13.el8.noarch                           1/1
  Upgrading        : epel-release-8-13.el8.noarch                           1/2
  Cleanup          : epel-release-8-11.el8.noarch                           2/2
  Running scriptlet: epel-release-8-11.el8.noarch                           2/2
  Verifying        : epel-release-8-13.el8.noarch                           1/2
  Verifying        : epel-release-8-11.el8.noarch                           2/2
Installed products updated.

Upgraded:
  epel-release-8-13.el8.noarch

Complete!

[root@centos ~]# yum repolist
repo id                        repo name
appstream                      CentOS Linux 8 - AppStream
baseos                         CentOS Linux 8 - BaseOS
centos-advanced-virtualization CentOS-8 - Advanced Virtualization
centos-ceph-nautilus           CentOS-8 - Ceph Nautilus
centos-nfv-openvswitch         CentOS-8 - NFV OpenvSwitch
centos-openstack-victoria      CentOS-8 - OpenStack victoria
centos-rabbitmq-38             CentOS-8 - RabbitMQ 38
epel                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                   Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                         CentOS Linux 8 - Extras

[root@centos ~]# yum list elinks
Last metadata expiration check: 0:00:54 ago on Wed 22 Sep 2021 11:53:29 PM PDT.
Error: No matching Packages to list

[root@centos ~]# yum config-manager --set-enabled codeready-builder-for-rhel-8-x86_64-rpms
Error: No matching repo to modify: codeready-builder-for-rhel-8-x86_64-rpms.

[root@centos ~]# dnf repolist
repo id                        repo name
appstream                      CentOS Linux 8 - AppStream
baseos                         CentOS Linux 8 - BaseOS
centos-advanced-virtualization CentOS-8 - Advanced Virtualization
centos-ceph-nautilus           CentOS-8 - Ceph Nautilus
centos-nfv-openvswitch         CentOS-8 - NFV OpenvSwitch
centos-openstack-victoria      CentOS-8 - OpenStack victoria
centos-rabbitmq-38             CentOS-8 - RabbitMQ 38
epel                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                   Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                         CentOS Linux 8 - Extras

[root@centos ~]# yum config-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
Error: No matching repo to modify: codeready-builder-for-rhel-8-x86_64-rpms, repos.

[root@centos ~]# dnf config-manager --set-enabled powertools

[root@centos ~]# yum repolist
repo id                        repo name
appstream                      CentOS Linux 8 - AppStream
baseos                         CentOS Linux 8 - BaseOS
centos-advanced-virtualization CentOS-8 - Advanced Virtualization
centos-ceph-nautilus           CentOS-8 - Ceph Nautilus
centos-nfv-openvswitch         CentOS-8 - NFV OpenvSwitch
centos-openstack-victoria      CentOS-8 - OpenStack victoria
centos-rabbitmq-38             CentOS-8 - RabbitMQ 38
epel                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                   Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                         CentOS Linux 8 - Extras
powertools                     CentOS Linux 8 - PowerTools

[root@centos ~]# yum list elinks
CentOS Linux 8 - PowerTools                     237 kB/s | 2.3 MB     00:10
Last metadata expiration check: 0:00:06 ago on Thu 23 Sep 2021 12:05:32 AM PDT.
Available Packages
elinks.x86_64                   0.12-0.58.pre6.el8                    powertools
[root@centos ~]#

//finally the elinks package is available on centos from PowerTools repository





//now install elinks

#yum install elinks

#elinks











Post a Comment

0 Comments