netstat/net-tools package not found on RHEL - linux

I can't install netstat on my redhat server, I can't even find which packet provides it, and when I go through net-tools package installation I can't find the net-tools package as well.
Bellow is what I tried
[root#njwvms04 ~]# netstat -a
-bash: netstat : commande introuvable
[root#njwvms04 ~]# yum install netstat
Modules complémentaires chargés : enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade, versionlock
Excluding 92 updates due to versionlock (use "yum versionlock status" to show them)
Aucun paquet netstat disponible.
Erreur : Rien à faire
Uploading Enabled Repositories Report
Modules complémentaires chargés : product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
[root#njwvms04 ~]# yum whatprovides */netstat
Modules complémentaires chargés : enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade, versionlock
Excluding 92 updates due to versionlock (use "yum versionlock status" to show them)
No matches found
Uploading Enabled Repositories Report
Modules complémentaires chargés : product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
[root#njwvms04 ~]# yum install net-tools
Modules complémentaires chargés : enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade, versionlock
centos-opstools-release | 2.9 kB 00:00:00
centos-sclo-rh-release | 3.0 kB 00:00:00
ovirt-4.1-centos-qemu-ev | 2.9 kB 00:00:00
ovirt-4.1-epel/x86_64/metalink | 17 kB 00:00:00
ovirt-4.1-patternfly1-noarch-epel | 3.0 kB 00:00:00
ovirt-4.2-centos-gluster312 | 2.9 kB 00:00:00
ovirt-4.2-centos-opstools | 2.9 kB 00:00:00
ovirt-4.2-centos-ovirt42 | 2.9 kB 00:00:00
ovirt-4.2-centos-qemu-ev | 2.9 kB 00:00:00
ovirt-4.2-epel/x86_64/metalink | 17 kB 00:00:00
ovirt-4.2-virtio-win-latest | 3.0 kB 00:00:00
sac-gdeploy | 3.0 kB 00:00:00
virtio-win-stable | 3.0 kB 00:00:00
Excluding 92 updates due to versionlock (use "yum versionlock status" to show them)
Aucun paquet net-tools disponible.
Erreur : Rien à faire
Uploading Enabled Repositories Report
Modules complémentaires chargés : product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
Here is my distribution configuration :
[root#njwvms04 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="7.7"
VERSION_ID="7.7"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Red Hat Virtualization Host"
VARIANT_ID="ovirt-node"
PRETTY_NAME="Red Hat Virtualization Host 4.3.7 (el7.7)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.7:GA:hypervisor"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
# FIXME
REDHAT_BUGZILLA_PRODUCT="Red Hat Virtualization"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.7
REDHAT_SUPPORT_PRODUCT="Red Hat Virtualization"
REDHAT_SUPPORT_PRODUCT_VERSION=7.7

What i think is all of the repositories you have enabled might not have the package net-tools, so use all centos global repositories and enable them, then run the commands
# yum -y install epel-release
# yum clean all
# yum update all
# yum install -y net-tools
This will only work if you epel repository is configures properly.

Related

Building GCC 11.2 on Amazon Linux 2

While attempting to build GCC version 11.3 for Linux-x86_64 (with multilib and multiarch support enabled), I am getting the following error:
In file included from /usr/include/features.h:447,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/../gcc/tsystem.h:87,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/generic-morestack.c:32:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
From what I can tell this means that I don't have glibc-devel (32-bit version) installed; however when attempting to install it via YUM I get the following output:
$ sudo yum install glibc-devel.i686
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
No package glibc-devel.i686 available.
I am using an Amazon Linux Workspace, any assistance would be helpful.
Maybe you are using centos so you need to go to chrome and search for "How to install glibc-devel.i686 for centos".

Can't install docker on amazon linux instance

My instance is on this AMI: amzn2-ami-hvm-2.0.20191116.0-x86_64-gp2 (ami-01f14919ba412de34)
I want to install docker following this document so here is the output of my commands:
[ec2-user#ip-10-193-192-42 ~]$ sudo amazon-linux-extras install docker
Installing docker
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker docker-ce-stable
12 metadata files removed
6 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 2.4 kB 00:00
amzn2extra-docker | 1.3 kB 00:00
docker-ce-stable | 3.5 kB 00:00
(1/6): amzn2-core/2/x86_64/group_gz | 2.6 kB 00:00
(2/6): amzn2-core/2/x86_64/updateinfo | 174 kB 00:00
(3/6): docker-ce-stable/x86_64/updateinfo | 55 B 00:00
(4/6): docker-ce-stable/x86_64/primary_db | 37 kB 00:00
(5/6): amzn2extra-docker/2/x86_64/primary_db | 59 kB 00:00
(6/6): amzn2-core/2/x86_64/primary_db | 36 MB 00:00
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.09.9ce-2.amzn2 will be installed
--> Processing Dependency: runc = 1.0.0 for package: docker-18.09.9ce-2.amzn2.x8 6_64
--> Processing Dependency: containerd = 1.2.6 for package: docker-18.09.9ce-2.am zn2.x86_64
--> Processing Dependency: pigz for package: docker-18.09.9ce-2.amzn2.x86_64
--> Processing Dependency: libcgroup for package: docker-18.09.9ce-2.amzn2.x86_6 4
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.10-3.2.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.i o-1.2.10-3.2.el7.x86_64
---> Package libcgroup.x86_64 0:0.41-21.amzn2 will be installed
---> Package pigz.x86_64 0:2.3.4-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution
Error: Package: containerd.io-1.2.10-3.2.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Installation failed. Check that you have permissions to install.
[ec2-user#ip-10-193-192-42 ~]$
How to get this work?
EDIT
My instance is in an Autoscaling GRoup so I terminated the previous one and I tried to do docker install in the new one:
I got to install docker but when I run the command:
sudo service docker start
I logged out from the instance and I got an error window:
network error: software caused connection abort
Any clue why is this happening ?
Just tried to install Docker to the exact same AMI and all went well. I guess you’re experiencing issues because of extra repo named docker-ce-stable. You don’t need it on Amazon Linux 2 AMI, so, as soon as you got SSH access to your new instance, execute:
sudo amazon-linux-extras install docker
and you should be ok.
got the same problem, but fixed with different way.
Check in your Amazon Linux 2 box, if there is a file name
/etc/yum.repos.d/docker-ce
You should delete it. Then it would be fine to run the install command
sudo amazon-linux-extras install docker

unable to to install Varnish 6.0 on AmazonLinux

I am trying to install varnish 6 image on amazon linux and ubuntu but unfortunately I am not getting successful.
I have followed both the script and manual methods at https://packagecloud.io/varnishcache/varnish60/install#bash-rpm without success. See below the output. I am getting similar output on Ubuntu as well
[root#aaa00web32 yum.repos.d]# curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.rpm.sh | sudo bash
Detected operating system as amzn/2018.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/varnishcache/varnish60/config_file.repo?os=amzn&dist=2018&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: ovl, priorities
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
nt-local | 2.9 kB 00:00:00
varnishcache_varnish60-source/signature | 836 B 00:00:00
varnishcache_varnish60-source/signature | 951 B 00:00:01 !!!
(1/6): amzn-main/latest/group_gz | 4.4 kB 00:00:00
(2/6): amzn-updates/latest/group_gz | 4.4 kB 00:00:00
(3/6): nt-local/primary_db | 59 kB 00:00:00
(4/6): amzn-updates/latest/primary_db | 351 kB 00:00:00
(5/6): amzn-updates/latest/updateinfo | 502 kB 00:00:00
(6/6): amzn-main/latest/primary_db | 4.0 MB 00:00:01
varnishcache_varnish60-source/primary | 175 B 00:00:01
Package python26-pygpgme-0.3-9.12.amzn1.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: ovl, priorities
Package yum-utils-1.1.31-40.29.amzn1.noarch already installed and latest version
Nothing to do
Generating yum cache for varnishcache_varnish60...
The repository is setup! You can now install packages.
[root#aaa00web32 yum.repos.d]# yum install varnish
Loaded plugins: ovl, priorities
No package varnish available.
Error: Nothing to do
[root#aaa00web32 yum.repos.d]# yum update
Loaded plugins: ovl, priorities
No packages marked for update
[root#aaa00web32 yum.repos.d]#
Anyone has any idea what could be the issue here?
varnish 6.0 not support amazon linux
in [https://packagecloud.io/varnishcache/varnish60/install#bash-rpm][1] you could see in the install script
else
aws=`grep -q Amazon /etc/issue`
if [ "$?" = "0" ]; then
dist='6'
os='aws'
else
unknown_os
fi
amazon linux set dist to 6
in varnish download page [https://packagecloud.io/varnishcache/varnish60lts?page=1][2] you can see that there is no el6
same occur if you search for el6 tag [https://packagecloud.io/app/varnishcache/varnish60/search?dist=el%2F6][3]

rpm installation failed with errors

I was trying to install RDO repositories in my centos 7 but I am getting the following errors
# yum install -y https://rdoproject.org/repos/rdo-release.rpm
Loaded plugins: fastestmirror, langpacks
rdo-release.rpm | 5.1 kB 00:00:00
Examining /var/tmp/yum-root-lLOS4K/rdo-release.rpm: rdo-release-liberty-2.noarch
/var/tmp/yum-root-lLOS4K/rdo-release.rpm: does not update installed package.
Error: Nothing to do
Can somebody help me on this?

How can I solve this Sphinx search dependency issue?

I'm trying to install Sphinx search on a CentOS VPS via SSH but I keep getting dependency issues that I can't seem to resolve.
Here's the OS I'm using:
cat /etc/redhat-release
CentOS 6.4 (Final)
uname -a
Linux host.example.com 2.6.32-042stab074.10 #1 SMP Fri Mar 1 09:18:44 MSK 2013 i686 i686 i386 GNU/Linux
This to me looks like I need the 32-bit CentOS 6 rpm so I tried to install it with this command:
sudo yum install http://sphinxsearch.com/files/sphinx-2.0.8-1.rhel6.i386.rpm
but I get the following error message:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* extras: centos.mirror.constant.com
* updates: mirror.lug.udel.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
sphinx-2.0.8-1.rhel6.i386.rpm | 5.6 MB 00:30
Examining /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm: sphinx-2.0.8-1.rhel6.i386
Marking /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sphinx.i386 0:2.0.8-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16 for package: sphinx-2.0.8-1.rhel6.i386
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: sphinx-2.0.8-1.rhel6.i386
--> Finished Dependency Resolution
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16(libmysqlclient_16)
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')
No matter what I try I always seem to be missing libmysqlclient.so.16.
Any idea where I can find this package?
yum install mysql-devel
should do it.
Install the remi repository:
[http://blog.famillecollet.com/pages/Config-en]
Enterprise Linux 6 (with EPEL) i386 or x86_64
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
then install compat-mysql51
yum --enablerepo=remi install compat-mysql51
then install sphinx from the rpm downloaded
yum localinstall sphinx-2.1.2-1.rhel6.SYSTEM-VERSION.rpm
Use the SphinxSearch docker files (docker hub link) to easily install SphinxSearch.
Grab it:
docker pull leodido/sphinxsearch:latest
If you want to see how to compile from source (which I recommend as the better mode to install SphinxSearch), look into them - e.g., here.

Resources