installation on RedHat without subscription-manager - redhat

Is there a way to install gcc-g++ (for example) without subscription-manager ?
sudo yum upgrade gcc-c++
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register
.

You can create free account in RHN and register up to 15 machines for free.
Then (after register the machine) you can manage repos and install desired packages

Related

Offline Ros Bridge Intallation / without internet

We want to install Ros Bridge to our server. But we don't have internet access on server. Is it possible we can install without internet?
Thank you...
You can download the package and all it's dependencies on a different device (with similar architecture) like
sudo apt-get install ros-<rosdistro>-rosbridge-server --download-only
This will place the packages at /var/cache/apt/archives. The files then can be used for installation without the need of downloading them again. So after moving them to your server, this can be done with
apt-get install ros-<rosdistro>-rosbridge-server

RHEL 8.4 - Unable to install httpd

I'm currently trying to install a web solution on a RHEL 8 distribution.
But I can't install apache2 (httpd) :
I search on Google but didn't find anything, and I didn't know RHEL, it's the first time
Thanks
Your issue is not httpd, the issue is you have to register your system into Red Hat. See these instructions.
there is a step-by-step to register your RHEL
System Registration from the command line
In the terminal window, start a root shell:
$ sudo bash
Next, register your system with Red Hat Subscription Management:
# subscription-manager register --auto-attach
Enter your Red Hat username and password. When registration has completed, you’ll see:
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
Check that you now have the BaseOS and AppStream repos enabled with yum repolist:
# yum repolist
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Install updates
Once your system has been registered, you can use the command line or web console to install the latest updates.
Updating from the command line
use yum update form within a Terminal session to install the latest updates.
$ sudo yum update
If an updated kernel package is installed during updates, you should reboot your system:
$ reboot
After that you can install httpd
# yum install -y httpd
PRO TIP.
Register yourself as developer in Red Hat an redhat give you a subscription if you don't have one.This tip is for self study purposes I don't encourage you to use a developer subscription for production.
Good journey.

how to update yum in centos 7?

Error message when run yum on Centos 7
Loaded plugins: fastestmirror
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
Your post indicates that you are using CentOS 7 but your code snippet implies you are actually using Red Hat Enterprise Linux.
RHEL does not ship with any usable package repositories by default. You don't need to update yum, you need to enable a software repository so you can use yum to download packages from it.
The proper way to resolve this is to either purchase a RHEL Subscription License to their Enterprise Software Repositories or sign up for a developer license, which is free with some small restrictions.
Alternatively, you can use this process to add the CentOS 7 repositories to RHEL 7. Which will allow you to get by for the most part.

Cf application in Bluemix - install dependency package

I have a Spring Boot application deployed as a Cloud Foundry app on Bluemix. Unfortunately the core of this app depends on an external program (e.g. abc) which can be easily installed using apt-get install abc on a desktop environment.
Is there any way to install such a dependency in a cloud foundry environment?
Many thanks for your support
Luca
I'm working on a similar challenge with R and am using a soon-to-be-discontinued git repo which uses apt-get options to allow you to redirect your install into folders/directories where you have write authority during the staging process. You'll have to update your paths to ensure that you can access the installed code. The install process is multi-step,
define the alternate path for apt
define the path for your installation
update apt
use apt-get install ... to download the necessary packages and associated dependencies
use dpkg to install the downloaded packages

how install rvm on RHL7 using centos repo

How to install rvm(ruby) on RHL7 using centos repo.
I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.
when I try to install ruby 1.93 using rvm I got this:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?
Our client does not have registered system with redhat, So I did configure centos repository.
But how can I tell RVM to use this centos repository?
I managed the problem running:
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc:
softwarecollections
For your case, they have software collection for Ruby193 and Ruby22.
On each page you will find instructions on how to use it.