Installing puppet 3.8 master - couchdb

I'm trying to install puppet-server 3.8.7.
The problem is that the puppet-server automatically requires puppet, that requires puppet-agent, who supplies me only the newest version that fits puppet 4.x only (puppet-agent-1.5.2).
The
"yum install puppet-server"
Failed .
What can i do?

Related

How to upgrade the GPG version installed on AWS EC2

I have a requirement to upgrade the GNU Privacy Guard(GPG) package installed on AWS EC2 instance. The OS installed on EC2 is Linux(Not Ubuntu).
The current version installed is 2.0.22-5.amzn2.0.4,which is depricated as per GPG website. https://gnupg.org/download/index.html
Hence, I wish to upgrade it to version 2.3
I tried the below commands for the purpose.
$ sudo yum update-minimal gnupg
$ sudo yum reinstall gnupg
$ sudo yum update gpg
Everytime, I get a message saying NO PACKAGEs MARKED FOR UPDATE
When tried to reinstall using command number 2, the same version 2.0.22-5.amzn2.0.4 is reinstaled again, which actually isn't the latest version.
Can anyone suggest the process to upgrade to latest version?
Updated remark:
The package name on Amazon Linux 2 should be gnupg2.
You should be using Amazon Linux 2, you are using the latest package version provided by Amazon Linux 2.
By the time I write this answer, most distribution are still using gnupg 2.2, the only common distribution providing gnupg 2.3 is Fedora, you can find it at https://fedora.pkgs.org/35/fedora-x86_64/gnupg2-2.3.2-2.fc35.x86_64.rpm.html
In case you really need it now, you may either:
Build it by yourself
Install the rpm package from Fedora via dnf install <rpm-url>

Dependencies error at the time of installing nodejs.rpm using rpm in Centos 7?

I am trying to install nodejs.rpm in Centos 7 using rpm installer. Referred this link. Downloaded rpm binary package from referred link here.
The files downloaded and available in my local directory. Then execute the following command
rpm -ivh nodejs-10.13.0-2.el7.x86_64.rpm
End up in the following error
warning: nodejs-10.13.0-2.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID ac25decd: NOKEY
error: Failed dependencies:
http-parser >= 2.7.0 is needed by nodejs-1:10.13.0-2.el7.x86_64
libcrypto.so.1.1()(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
libhttp_parser.so.2()(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
libnghttp2.so.14()(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
libnghttp2_14_17_1 >= 1.34.0 is needed by nodejs-1:10.13.0-2.el7.x86_64
libssl.so.1.1()(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
libssl.so.1.1(OPENSSL_1_1_0)(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
libuv >= 1:1.23.2 is needed by nodejs-1:10.13.0-2.el7.x86_64
libuv.so.1()(64bit) is needed by nodejs-1:10.13.0-2.el7.x86_64
npm = 1:6.4.1-1.10.13.0.2.el7 is needed by nodejs-1:10.13.0-2.el7.x86_64
I appreciate any help to resolve this warning and error. Thanks in advance.
You have two options:
downloading yourself all dependencies (painful!) and then installing all of them with rpm -ivh *.rpm
using a decent package manager like yum or dnf that manages all dependencies for you. I would suggest you to try running simply yum install nodejs8 or even yum install ./nodejs-10.13.0-2.el7.x86_64.rpm if you really want to install the exact version that you downloaded.
I used YUM repository to satisfied dependency chain of installing nodejs in centos 7.
When I tried to install using yum command doesn't download all dependencies automatically still few dependency error occurred.
yum install nodejs-10.13.0-2.el7.x86_64.rpm
To resolve this:
Created a directory in a root directory named(A).
Download those few dependencies individually(you can get each rpm file
in google search).
Place all dependencies rpm files along with nodejs rpm in
directory A.
Then run this command to create repodata directory automatically inside A.
createrepo A
Create a repository file named(local.repo) in path /etc/yum.repos.d
[NodeUpgrade]
name=Node Version Upgrade - NodeUpgrade
baseurl=file:///A
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
NodeUpgrade is repository name. This can be listed when execute command
yum repolist
repo id repo name status
NodeUpgrade Node Version Upgrade - NodeUpgrade 7
debuginfo debuginfo 3160
Install using yum:
sudo yum install nodejs
List available nodejs to find nodejs installed and make sure the repo name matches with the one specified in local.repo
yum info nodejs
Installed Packages
Name : nodejs
Arch : x86_64
Epoch : 1
Version : 10.13.0
Release : 2.el7
Size : 27 M
Repo : installed
From repo : NodeUpgrade
Summary : JavaScript runtime
URL : http://nodejs.org/
License : MIT and ASL 2.0 and ISC and BSD
Description : Node.js is a platform built on Chrome's JavaScript
: runtime for easily building fast, scalable network
: applications. Node.js uses an event-driven,
: non-blocking I/O model that makes it lightweight and
: efficient, perfect for data-intensive real-time
: applications that run across distributed devices.
Thanks for your suggestion #Chris Maes. I hope this explanation will bring a clear picture.

Apt-get install maven did not install latest version

I need to get Maven 3.25 or later in my Linux Ubuntu VM. After running the command sudo apt-get install maven, the system downloaded Maven 3.0.5. Is there a way to get the latest version of Maven (3.3.9) instead using apt-get?
The version of maven in the ubuntu universe repository does not always match the latest available version of software. In addition, Ubuntu does not upgrade packages for new features after shipping a release, only patches and security updates, unless you upgrade the Ubuntu version you are on.
For example, Ubuntu Xenial (16.04) currently ships Maven 3.3.9, but Ubuntu Trusty (14.04) only ships Maven 3.0.5. You have multiple options:
Install maven manually from the maven website.
Upgrade the version of Ubuntu you are using to 16.04, and the package manager will upgrade maven to the 3.3.9 version of maven.
You can run sudo apt-get update to check for package updates. After that potentially sudo apt-get install maven will install more recent version.
If you are using Debian, you can use sudo apt-get install -t jessie-backports maven and it will install the newest version. (Helpful for other users trying to get help.)

Ansible + why yum not install the latest version

I am installed successfully the ansible tool from yum repository as
yuminstallansible
ansible is great tool even more then puppet
From site - http://docs.ansible.com/ansible/intro_installation.html#getting-ansible
but after yum installation I see that the ansible isn’t the latest version
ansible--version
ansible1.1
Ansible releases - https://github.com/ansible/ansible/releases
please advice why yum not install the latest ansible version ( 1.9 )
You must configure EPEL first: https://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/ansible.html
It may be better to install Ansible with pip.
pip will get you the latest version much more quickly than yum

Need Advice: Latest version of Node.js vs using Synaptic Package Manager?

I'm trying to get node.js and npm installed on my Ubuntu 11.10 installation, and I'm having a tricky time. I decided to go the route of downloading and compiling from the latest source because I want to use the new version of node.js - v0.6.0 instead of the older version that the synaptic package manager will install. However, I could not get npm set up correctly with it due to a "module not found" error. I was completely surprised at how little information I was able to find on the error.
Anyways, my goal here is to learn node.js, not to run a production environment. Should I give in and use v4.9 or is it really worth getting the newest version for the sake of learning, even if I have to go through the pain of keeping it updated and configuring it myself?
If you have Ubuntu, install it from Chris Lea's repo, it's always up to date with the last stable version (for ex now the version is 0.6.0 - as of today):
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Generally, you want to install node from source since the packages you find in package managers are usually out of date. 0.4.12 was the last stable before 0.6.0 that was released a few days ago. 0.4.9 is pretty out of date.
This is a old question, nowadays my preferred way to install node is by using nvm (Node Version Manager). This will allow you to have multiple versions of node installed and quickly switch version.
Installation:
Install C++ compiler
apt-get update
apt-get install build-essential libssl-dev
Install NVM
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
source ~/.profile
Install node (select which version you want to install)
nvm install 6
Usage:
To set a default node version:
nvm alias default 0.12.7
To select a different installed version:
nvm use 4

Resources