How To Install Latest Nodejs on CentOS? - node.js

I following a few tutorials and nothing works. Here is what I do :
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
sudo yum install nodejs
It never upgrades the version and I always get
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 66.23.237.210
* cpanel-addons-production-feed: 66.23.237.210
* cpanel-plugins: 66.23.237.210
* base: centos.mirror.vexxhost.com
* extras: centos.mirror.colo-serv.net
* updates: mirror.dst.ca
Package 2:nodejs-13.14.0-1nodesource.x86_64 already installed and latest version

Related

CentOS 7 - No package letsencrypt available

I am trying to install letsencrypt so i can use HTTPS on my GitLab server. But nothing is dowloaded and I only get message No package letsencrypt available
Output from terminal:
sudo yum -y install letsencrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.fi.muni.cz
* extras: ftp.fi.muni.cz
* updates: ftp.fi.muni.cz
No package letsencrypt available.
Error: Nothing to do

node -v says v4.2.3 but yum install says nothing to do

I am trying to install the latest version of node.js in my CentOS 6.9 server.
root#server [~]# node -v
v4.2.3
my current versions seems to be v4.2.3. I used following line to install new version:
curl --silent --location https://rpm.nodesource.com/setup_9.x | sudo bash -
sudo yum -y install nodejs
it says:
Loaded plugins: fastestmirror, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
* EA4: 70.87.220.252
* cpanel-addons-production-feed: 70.87.220.252
* base: dist1.800hosting.com
* epel: fedora-epel.mirror.lstn.net
* extras: mirror.dal10.us.leaseweb.net
* updates: repo1.dal.innoscale.net
Package 2:nodejs-9.11.1-1nodesource.x86_64 already installed and latest version
Nothing to do
output from rpm -qa |grep node*
nodesource-release-el6-1.noarch
nodejs-9.11.1-1nodesource.x86_64

Format of the <version> string for installing a specific version of Docker Community Edition yum CentOS

I understand how to install the latest version of Docker CE and I understand almost completely how to install a specific version of Docker as I have read here and here and here
My problem is that I cannot figure out the format of the version string docker-ce-<version> for installing a specific version of Docker Community Edition. I have tried:
yum install docker-ce-17.06
And
yum install docker-ce-17.06.0
And
yum install docker-ce-17.06.0.ce-1.el7.centos
I get No package docker-ce- available messages like so:
No package docker-ce-17-06.0.ce-1.el7.centos available.
I ran
yum list docker-ce.x86_64 --showduplicates | sort -r
Output:
* updates: centos.chicago.waneq.com
Loading mirror speeds from cached hostfile
Loaded plugins: fastestmirror, langpacks
Installed Packages
* extras: ftp.linux.ncsu.edu
* epel: mirror.oss.ou.edu
docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.1.ce-1.el7.centos #docker-ce-stable
docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable
* base: mirror.umd.edu
Available Packages
And I want to install Docker Community Edition 17.06.0
I guess it was a typo in my version, here is what worked for me on CentOS 7:
yum install docker-ce-17.06.0.ce-1.el7.centos
For detailed answer of Installing specific or old version of Docker on Centos7 or later versions.
follow this link:https://stackoverflow.com/a/65862402/5968928

failure: nginx-1.0.15-12.el6.x86_64.rpm from epel

I'm trying to install Nginx in Linux Centos 6.7
I log-in as root and run
yum update
yum install nginx -y
I keep getting
nginx-1.0.15-12.el6.x86_64: failure: nginx-1.0.15-12.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
Any hint/suggestion on that will be much appreciated
Try #2
Try yum clean metadata then yum install nginx -y , I got
[root#CentOS6 ~]# yum install nginx -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 12 kB 00:00
* base: mirror.solarvps.com
* epel: ftp.cse.buffalo.edu
* extras: mirror.atlanticmetro.net
* remi-php56: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* updates: mirror.net.cen.ct.gov
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 3.6 MB 00:00
Error: xz compression not available
Try #3
yum install pyliblzma or yum install python-backports-lzma
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.solarvps.com
* epel: ftp.cse.buffalo.edu
* extras: mirror.atlanticmetro.net
* remi-php56: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* updates: mirror.trouble-free.net
Error: xz compression not available
Try #4 is working
I got my Nginx to install by doing the following
yum clean all
yum remove epel-release
yum update
yum install epel-release
yum install nginx -y

cassandra installing on centOS 6 using yum install dsc20 says following and not installed

Loaded plugins: fastestmirror, refresh-packagekit Loading mirror speeds from cached hostfile * base: ftp.osuosl.org * extras: centosy3.centos.org * rpmforge: repoforge.mirror.constant.com * updates: centosu5.centos.org datastax | 951 B 00:00 Setting up Install Process No package dsc20 available.
As Orajinder pointed out you need to do the following:
Add the repo to your list of supported repositories:
sudo vim /etc/yum.repos.d/datastax.repo
[datastax]
name= DataStax Repo for Apache Cassandra
baseurl=http://rpm.datastax.com/community
enabled=1
gpgcheck=0
Then install
sudo yum install dsc20

Resources