Install packages without internet Red Hat - linux

I need to install Hyperledger on a Red Hat Enterprise Linux server that won't be connected to the internet. What I'll need to install is likely the Go language and Docker however given I have no internet connection I can't just use a package manager.
I've read about methods to do this with Ubuntu that mention copying .deb files over or otherwise using tools - would this work with RHEL and if not would anyone be able to recommend a way of doing this? (or any advice for achieveing this generally).

You can install the package "downloadonly" on a RHEL Server with internet connection:
# yum install yum-plugin-downloadonly
Then download the packages you want:
# yum install --downloadonly --downloaddir=<directory> <package>
Transfer and install them on a Server without internet connection:
# rpm -ivh package.rpm

Related

How to install node.js and its dependency in openVZ server

I am new to openVZ and I want to install node.js and all its dependencies on openVZ server.
Suggestion is much appreciated, thank you.
To install nodejs on either OpenVZ server or OpenVZ container you would want to use whichever package manager that is provided with your distribution. The two most popular OpenVZ server distributions are CentOS (yum/rpm) and Debian (aptitude/apt-get/dpkg). If you are using an OpenVZ container, there are many more possibilities but chances are it is a distribution that supports either yum or apt.
For CentOS 7 (YUM/RPM) you first need to install the extra packages repository:
yum install epel-release
Then you should be able to install nodejs:
yum install nodejs
For Debian Jessie (and also Ubuntu 16.04) it appears to be in the stable repositories so you can just install it:
aptitude update
aptitude install nodejs
EDIT: I just noticed a minimal Ubuntu did not have aptitude installed. Instructions for apt-get:
apt-get update
apt-get install nodejs
If that does not answer your question, please supply more information such as which distribution you are using and what version of nodejs you need to install so others will be able to assist you better.

install unix program without internet access

I have a red hat server (server 1) which does not have access to internet.
I also have another another red hat server (server 2) which DOES have access to internet and it can also access server 1.
I need to install programs on server 1. In this case it is about a node module called pm2. I am not sure how this can be done. Should I install the module on server 2 and then upload it to the server 1?
Or generally: what is the approach to take in this situation?
Not a RH user... but if yum works the same way as apt then if you install the package(s) on server2 then you can simply copy teh RPMs to server1 (sneaker net, etc) and then install them. So really you just need to find where yum saves rpms it downloads before it installs them.
You can install the package "downloadonly" on server 2:
# yum install yum-plugin-downloadonly
Then download the packages you want:
# yum install --downloadonly --downloaddir=<directory> <package>
Transfer and install them on Server 1:
# rpm -ivh package.rpm

centOS Security Center yum install dependencies failing

I am running a centOS 7 virtual machine and trying to install an RPM package for Security Center 4.7.1. The yum installer fails to find the install packages for the dependencies libexpat and libreadline, however I do have expat and readline installed. I don't understand this because it seems that the Security Center RPM is looking for packages of the wrong names. This link is a screen shot showing the yum install abort, the lack of installed packages required and the packages I do have installed relevant to the problem...
centOS VM screenshot
Any suggestions on how to remedy this without forcing the install and risking non functionality of Security Center?
The package you are trying to install needs
libexpat.so.0
libreadline.so.5
but your installation has probably (from what I can see)
libexpat.so.2
libreadline.so.6
It will be difficult to install this package; I would recommend you to search for a newer SecurityCenter package.
for experts:
there is probably a way to work around this; if you can manage to install an older libreadline and libexpat rpm side by side with the new ones; but that might be risky because there are probably some conflicts and updates might not run too well...

How to resolve dependencies while installing application on linux (CentOS 7.1)

When I tried install deluge on my CentOS 7.1 I was facing dependecy problems due to some el6 which are not meant for CentOS 7.1. So, I found this page:
https://gist.github.com/dasgoll/111f6f3364e2ab97bc08
His instructions:
Centos 7.1
yum -y install wget wget hxxp://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm
yum -y install deluge-web
systemctl start deluge-web
systemctl stop firewalld
browse http://192.168.3.101:8112
check it
yum install deluge-console
And my question is: Why he installed "nux-dextop-release-0-5.el7.nux.noarch.rpm" from li.nux.ro (if I'm not wrong it's a repository, correct me if I'm)? Because I had this dependency problem earlier when I tried installing deluge. But when I used his instructions it resolved all the dependencies automatically for me. So does this rpm file he installed on the first place was for resolving dependencies? If not then how can one work around with dependencies while installing a piece of software/application. Than You in advance.
P.S. I asked the same question in comments there too. But I'm uncertain of receiving reply there (no offence for the guy/girl - dasgoll).
Third party package repos will often use a *-release package to contain both a yum repo definition and a rpm signing public key so that end users can install packages directly from the repo using yum instead of having to find and then download them one by one.

Adobe Air native installer Linux - Dependency is not satisfiable

I created native installers for my air application successfully under MacOS and Windows.
With Ubuntu 10 I am able to create a .deb package, but when I launch it opens the Ubuntu software center showing error:
Dependency is not satisfiable: adobeair (>= 2.5.0.0)
I thought native installer should be able to download the proper adobe air version if available (2.5.1 seems available as deb package). If I install air for linux 2.5.1 from adobe website my application launches fine.
Did anyone experience the same issue?
Thanks in advance for any help
Paolo
Unfortunately, many years late "Adobe AIR for Linux is no longer supported." following what adobe page says. Using the "AIR archive" is possible to get unsupported versions, the 2.6.0 version is the most recent available. If you need to install a program that require a newer version of it, you might go to Virtual box with a Windows guest.
For version 2.6.0 the recommend steps for Ubuntu 16.10 are:
for 32bit machine
wget -O adobe-air_i386.deb http://drive.noobslab.com/data/apps/AdobeAir/adobeair_2.6.0.2_i386.deb
sudo dpkg -i adobe-air_i386.deb
sudo apt-get install -f && rm adobe-air_i386.deb
for 64bit machine
wget -O adobe-air_amd64.deb http://drive.noobslab.com/data/apps/AdobeAir/adobeair_2.6.0.2_amd64.deb
sudo dpkg -i adobe-air_amd64.deb
sudo apt-get install -f && rm adobe-air_amd64.deb
The recommend steps for Ubuntu 16.04/14.04/12.04/Linux Mint 18/17/13 (both extracted from here):
wget -O adobe-air.sh http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
chmod +x adobe-air.sh;sudo ./adobe-air.sh
What version of the adobeair package is available from the Ubuntu repositories?
A .deb is just an archive and the dependencies have to be available from the repositories the system is configured to use. It can't resolve the dependency by downloading it from some specific location you know of but the system is not configured to use.
If the needed version of the package is not available from the Ubuntu repositories then your only options are to reconfigure the system to use an additional repository that does have the needed dependency before you try to install your package, or download and manually install the dependency before you try to to install your package.
Try to install itdpkg -i --force-architecture adobeair.deb

Resources