"No package found" error when installing NGINX on CentOS 5 - nginx

The command sudo yum install nginx returns the error No package nginx available. I've tried this before and it worked but now it doesn't.
Please help!

nginx isn't in the 'normal' Centos repositories. You can install the EPEL repository to gain access to it. There's a how to guide here - and a more up to date one here.
Once you have added the EPEL repo, you can then install with the yum command you referenced.

Related

EPEL & Codeready-builder AWS EC2 RHEL8

I am running an EC2 instance with a RHEL8 AMI.
I am looking to install R on the instance and I believe I need the EPEL package and to enable the codeready builder through the following two commands
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
more info at (https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/)
I can download epel (first line) fine but when I run the second line I get the following:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms.
Also when I try to run the following, I get the following:
This system has no repositories available through subscriptions.
and for completeness, this is the error when i try to install R
$sudo yum install -y R
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC.
Error:
Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed
- package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64
- nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Does anyone have any ideas or has solved this same problem?
I worked this out just after writing it...
For anyones reference, it seems AWS had their command written wrongly.
Still download epel package as shown above
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
and instead of the following from AWS website
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
You can use
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
Then go ahead with sudo yum install -y R

YUM package available in repo, but while install gives "No package"

I am upgrading from python 2.7 to 3.6.
We are using JFrog artifactory repository for hosting packages.
I have verified in the yum repo (artifactory) URL that the package python36 exists.
Following are the things tried:
In /etc/yum.repos.d/epel.repo, added the baseurl of yum (artifactory) repo.
yum clean all
yum info python36 - Error: No matching Packages to list
yum install python36 - No package python36 available. Error: Nothing to do
But the install respond by saying "No package available".
Please advise if I am missing anything here or need to look into other things.
For records -
With yum repolist and yum search working, yum install should be working.
It turns out there was an issue with repo and artifacts were not discoverable.
Now after repo being reloaded the things are working fine.

php7.0-mcrypt can't install on ubuntu14.04

phpmyadmin show error [ The mcrypt extension is missing. Please check your PHP configuration.] on nginx. My PHP version is PHP 7.0.33-1+ubuntu14.04.1+deb.sury.org+1 (cli).
When I install php7.0-mcrypt, package doesn't exist.How to install php7.0-mcrypt?
As I understand from your message, you're using ubuntu 14.04. I recommend you upgrade your system. You could find this package in some latest reseases.
Or you could install this package manually wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/p/php7.0/php7.0-mcrypt_7.0.33-0ubuntu0.16.04.4_amd64.deb && sudo dpkg -i php7.0-mcrypt_7.0.33-0ubuntu0.16.04.4_amd64.deb. But be careful, you could face some dependency hell and damage your OS.

NGINX failed after installing "nginx-extras"

Installed through:
apt-get install nginx-extras
After this, I tried do "service nginx restart" and "nginx -t" gets
no port in upstream "php5-fpm-sock" in /etc/nginx/sites-enabled/[file]:84
Then I uninstalled nginx-extras
apt-get remove nginx-extras
But problem has not solved, it seems during installation some config was changed.
Question is what config has changed and how to fix?
Nginx 1.13.12 on Debian 8.
During instalation nginx-extras, it will ask smth about use current version of configs. Answer N.
try and remove all nginx installed packages and install nginx-full

Unable to locate package http, ubuntu 12.04

I can install http just by call 'apt-get install http' But I get the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package http
I also tried 'sudo apt-get install http'. no luck.
My system is ubuntu 12.04.
Try this command:
sudo apt-get install apache2
The httpd package comes under the name of apache2 in Ubuntu.
The package name is httpd. so,
sudo apt-get install httpd
should work.

Resources