How to completely remove yum installed packages - centos7

When I use yum remove <package_name> -y, it removes the package, but I was able to find the package anyway with the which <package_name> command, and cannot be found when remove again
# yum list | grep pssh
mpssh.x86_64 1.3.3-2.el7 epel
pssh.noarch 2.3.1-5.el7 epel
pssh.x86_64 3.4.1-1 xxx-base
# yum remove pssh -y
Loaded plugins: fastestmirror, langpacks
No Match for argument: pssh
No Packages marked for removal
# which pssh
/usr/bin/pssh
What can I do to completely remove the packages installed by yum install?
And I was able to install pssh again, I intercepted the list results before and after the installation and removal
# after yum install pssh -y
# yum list | grep pssh
pssh.x86_64 3.4.1-1 #xxx-base
mpssh.x86_64 1.3.3-2.el7 epel
pssh.noarch 2.3.1-5.el7 epel
# after yum remove pssh -y
# yum list | grep pssh
mpssh.x86_64 1.3.3-2.el7 epel
pssh.noarch 2.3.1-5.el7 epel
pssh.x86_64 3.4.1-1 xxx-base
PS: OS is Centos7

Related

Uninstalling a package installed with amazon-linux-extras

How do you UNinstall a package installed with amazon-linux-extras??
sudo amazon-linux-extras install postgresql10
Installs it. Now... how do I remove it?
sudo amazon-linux-extras uninstall postgresql10
Nope.
sudo amazon-linux-extras remove postgresql10
Nope.
yum remove postgresql10
Nope.
WTH?
sudo yum remove postgresql
In order to confirm we are removing what we did install with amazon-linux-extras, we can check the Repository after we run the sudo yum remove command:

Unable to install pip

I tried installing pip in the following different ways and didn't have any success, any guidance how can I install pip ?
username#machine ~]$ sudo /usr/local/bin/easy_install pip
[sudo] password for username:
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
[username#machine ~]$ sudo /usr/local/bin/easy_install-2.7 pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
[username#machine ~]$ python -m pip
/usr/local/bin/python: No module named pip
[username#machine ~]$ sudo apt-get install python-pip
sudo: apt-get: command not found
[username#machine ~]$ sudo yum install python-pip
Loaded plugins: security
Setting up Install Process
No package python-pip available.
Error: Nothing to do
Machine configuration:
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: OracleServer
Description: Oracle Linux Server release 6.6
Release: 6.6
Codename: n/a
You can try to use the following for python2.7:
sudo apt install python-pip
And if you alternatively want to install on python3:
sudo apt install python3-pip
None of the above worked, I had to do the following for OL7, as per the official docs:
yum install -y oracle-epel-release-el7 oracle-release-el7

Can I specify the rabbitmq-server version when installing on a linux box?

When doing:
sudo apt-get install -y -qq --force-yes rabbitmq-server-3.6.6
the return is:
>E: Unable to locate package rabbitmq-server-3.6.6
>E: Couldn't find any package by regex 'rabbitmq-server-3.6.6'
Is there a way to specify the package I want to be installed?
you can find the versions on github/Package Cloud/bitnary
ex:
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_6/rabbitmq-server_3.6.6-1_all.deb
sudo dpkg -i rabbitmq-server_3.6.6-1_all.deb

How to access the review board site from other system via browser?

I have set-up all prerequisites and all the installation required for local reviewboard along with rb-site, server is apache httpd with mod_wsi. Can any one help me on how to access the review bpoard which I have installed locally from different systems via web browser.
Below are the steps detailed:
yum -y install zlib zlib-devel
yum -y install openssl-devel
yum -y install memcached
yum -y install python-devel
yum -y install python-setuptools
yum -y install patch
easy_install mysql-python
yum -y install git-core
easy_install ReviewBoard
rb-site install /var/www/ReviewBoard
While Installing rb-site :
Domain name localhost:80
Root Path : reviews
And other configurations are default.
All steps are executed successfully.
But I do not know how can I access the review board over browser.
Please help me?

"xz compression not available" after installing epel-release on centos7

As soon as I do a successful yum install epel-release (epel-release-7-6 or epel-release-7-8) on a fresh Centos7 installation then any subsequent yum update or yum install end with the error message xz compression not available. I tried reinstalling a few times and I get the same problem. This is all happening in a chroot but I don t think it s relevant.
Please help :)
Installing pyliblzma before epel-release solves the problem for me. Remove epel-release if it already installed.
yum remove -y epel-release
yum install -y pyliblzma
yum install -y epel-release