Questions tagged [rhel]

Red Hat Enterprise Linux (RHEL) is a distribution of the Linux operating system targeted at enterprise customers with emphasis on long-term stability and support.

Other support resources

Questions related to installing and running Red Hat Enterprise Linux are usually more on-topic on these sister sites:

Customers can file support cases in the customer portal.

1780 questions
21
votes
7 answers

How to find which version of Oracle is installed on a Linux server (In terminal)

I am in terminal in Redhat 5.5 and I need to find out which version of Oracle is installed. I am pretty new at Linux, but I have searched Google for a while and I can't find what I need. I have to locate which version is installed via terminal. I…
PolarisUser
  • 719
  • 2
  • 7
  • 18
19
votes
3 answers

nc: invalid option -- 'z'

On RHEL 7.2 OS, I get following error when trying to run nc commnad nc -z -v -w1 host port nc: invalid option -- 'z' Ncat: Try `--help' or man(1) ncat for more information, usage options and help. QUITTING. Is there any alternative to it
Patan
  • 17,073
  • 36
  • 124
  • 198
19
votes
5 answers

what does the rpmbuild warning "File listed twice" ACTUALLY MEAN?

I need to specify common attributes for one of the major directories in the package, and special permission for some of it subdirs. e.g. %files %attr(-, myuser, mygroup) /opt/myapp %attr(750, myuser, mygroup) /opt/myapp/bin # no exec permission to…
davka
  • 13,974
  • 11
  • 61
  • 86
19
votes
1 answer

Can upstart expect/respawn be used on processes that fork more than twice?

I am using upstart to start/stop/automatically restart daemons. One of the daemons forks 4 times. The upstart cookbook states that it only supports forking twice. Is there a workaround? How it fails If I try to use expect daemon or expect fork,…
johnjamesmiller
  • 720
  • 5
  • 14
17
votes
2 answers

Apache 2.4.x manual build and install on RHEL 6.4

OS: Red Hat Enterprise Linux Server release 6.4 (Santiago) The current yum installation of apache on this OS is 2.2.15. I require the latest 2.4.x branch so have gone about installing it manually. I have noted the complete procedure I undertook,…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
16
votes
1 answer

Python Build Error: failed to build modules _ssl and _hashlib

I am adding python 2.7.13 as an altinstall by installing the source code to my RHEL4 box with wget --no-check-certificate https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz tar -xvzf Python2.7.13.tar.xz cd Python2.7.13 ./configure…
stephen
  • 506
  • 1
  • 5
  • 17
16
votes
3 answers

What's the root cause of error "Failed dependencies: /bin/sh is needed by xxx" on RHEL?

When I install a rpm package on RHEL using rpm, I got a error message just like "Failed dependencies: /bin/sh is needed by xxx". I checked that /bin/sh is there and it links to /bin/bash and bash works well. I found a solution that to add --nodeps…
Jeff7566
  • 432
  • 1
  • 5
  • 20
15
votes
4 answers

Can't start Cassandra after OS patch up

When I try to start Cassandra after patching my OS, I get this error: Exception (java.lang.AbstractMethodError) encountered during startup:…
chris
  • 253
  • 2
  • 5
15
votes
4 answers

unable to configure the Docker daemon with file /etc/docker/daemon.json: EOF

I am new to docker and cannot understand these errors. So, Please let me know if any more information is needed. `$ docker --version` Docker version 1.12.6, build 88a4867/1.12.6 `$ docker info` Cannot connect to the Docker daemon. Is the docker…
Aki
  • 161
  • 1
  • 2
  • 5
14
votes
1 answer

Specifying alternatives in RPM dependencies

I've got a Java app that I am packaging as an RPM. Ideally I would like to specify Java as a dependency. I need to install in both Fedora and RHEL environments. The problem is RHEL Java is called 'java', while Fedora doesn't provide Oracle/Sun's…
Mike
  • 2,417
  • 1
  • 24
  • 33
14
votes
4 answers

pip install failing with 407 Proxy Authentication Required

I am trying to use the below pip install command, but its failing with Proxy authentication required issue. I have already configured my proxies inside my RHEL7.x Server. Command Used: `pip install --proxy https://'username:pwd'@proxy:host …
14
votes
3 answers

Preserve timestamp in sed command

I'm using following sed command to find and replace the string: find dir -name '*.xml' -exec sed -i -e 's/text1/text2/g' {} \; This changes the timestamp of all .xml files inside dir However, how can I retain old timestamps? Thanks
griboedov
  • 876
  • 3
  • 16
  • 33
14
votes
6 answers

Unable to yum install anything on RHEL

I am on a new RHEL system. I seem to be unable to be able to install anything package via yum install. yum install nmap The current repos in ls /etc/yum.repos.d/ google-chrome.repo redhat.repo rhel-source.repo What could be going wrong…
Prakash Raman
  • 13,319
  • 27
  • 82
  • 132
13
votes
4 answers

Why dockerize a service or application when you could install it?

We have around 12 services and other applications such as presto. We are thinking about building Docker containers for each service and application. Is it right to dockerize all of them? When would a Docker container not be the ideal solution?
jessica
  • 2,426
  • 24
  • 66
12
votes
6 answers

rpm: /lib64/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib/librpmio.so.3)

I am stuck with this error. Not able to install any RPMs. Please help OS is RHEL6.9 64 bit Thanks in advance.
Sachin Aravind
  • 150
  • 1
  • 2
  • 11