Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remi epel commands don't work as 'vagrant' user in chapter 4 "Add extra repositories" example #184

Closed
peurKe opened this issue Nov 3, 2019 · 2 comments

Comments

@peurKe
Copy link

@peurKe peurKe commented Nov 3, 2019

As "vagrant" user, theses commands doesn't works :

wget https://rpms.famillecollet.com/RPM-GPG-KEY-remi -O /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
rpm -Uvh --quiet https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install epel-release
yum --enablerepo=epel install npm

As "vagrant" user, theses commands works :
--no-check-certificate in order to allow unsecure wget on https
rpms.remirepo.net instead of rpms.famillecollet.com
sudo at the beginning of each command

sudo wget --no-check-certificate https://rpms.remirepo.net/RPM-GPG-KEY-remi -O /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
sudo rpm -Uvh --quiet https://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum install epel-release
sudo yum --enablerepo=epel install npm
@geerlingguy geerlingguy changed the title remi epel (chapitre 4 "Add extra repositories") remi epel commands don't work as 'vagrant' user in chapter 4 "Add extra repositories" example Dec 2, 2019
@arashpath

This comment has been minimized.

Copy link
Contributor

@arashpath arashpath commented Dec 13, 2019

Also remi-release-7.rpm requires epel-release so same must be installed first

# Installing epel-relese first
sudo yum install epel-release
sudo yum --enablerepo=epel install npm
# Then Install remi
sudo wget --no-check-certificate https://rpms.remirepo.net/RPM-GPG-KEY-remi -O /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
sudo rpm -Uvh --quiet https://rpms.remirepo.net/enterprise/remi-release-7.rpm
@geerlingguy

This comment has been minimized.

Copy link
Owner

@geerlingguy geerlingguy commented Jan 16, 2020

In the time since posting, it seems the https://rpms.remirepo.net/RPM-GPG-KEY-remi URL has a valid certificate, so that command doesn't need the --no-check-certificate flag.

Note that I would like to keep the commands without sudo, so in the text I updated the line above the script to mention it is meant to be run on a CentOS 7 server as the root user.

Thanks for pointing this out, I'll have it fixed in the next book update, coming very soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.