Skip to content
Advertisement

Tag: yum

Extract second word from a file in yum repository file using command line or bash

I wanted to extract a paticular file path from a text file (yum repository file) The file contents looks like this My requirement is to extract sslclinetkey path of both rhel-8-for-x86_64-appstream-rpm and rhel-8-for-x86_64-baseos-rpm through the command line or script Any help would be appreciated UPDATE I tried this way, but I am getting multiple entries But I only need of

sudo yum install is giving weird error on AWS Linux ec2 (SyntaxError: invalid syntax)

Machine details: Cloud: AWS OS: Linux ip-10-196-64-140.eu-west-1.compute.internal 4.14.209-160.335.amzn2.x86_64 #1 SMP Wed Dec 2 23:31:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Error details: Answer I tried to reproduce the issue, and it fails when you run yum with python3 instead of python2: You should use python2, not python3 for yum: It seems that in your instance default python version was changed

Install Azure CLI on VM using Chef

I am currently writing a script(recipe) with Chef that executes on an Azure (Linux) virtual machine. For my purposes I need to install Azure CLI on that VM. I followed these steps from the documentation. Unfortunately, I get the error that I can’t use “sudo”, and if I remove “sudo” it can’t find “azure-cli”. That part of the recipe looks

yum in dockerfile – There are no enabled repos

I am having issues with installing python3 with yum in dockerfile. I did look on internet, I did try few things, not working. Its just small thing but not able to figure it out. When I try to build below docker file I do get error . I get error at line – RUN yum install -y oracle-epel-release-el7 The docker

Instaling yum with dependencies on an embedded Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

yum check error when install package from source code

my server is centos 6.10, i install curl, libssh2, openssl, c-ares, python-urlgrabber from source code, and all these package run without any problems, but when i use camand yum check, i got error message: gnupg2-2.0.14-9.el6_10.x86_64 has missing requires of libcurl.so.4() rpm-4.8.0-59.el6.x86_64 has missing requires of curl yum-3.2.29-81.el6.centos.0.1.noarch has missing requires of python-urlgrabber >= (‘0’, ‘3.9.1’, ’10’) i have already try

Terminal hangs when executing yum commands

During a patch window, the yum update command stopped running with a Bus Error. Now when I try to execute a yum command my terminal hangs and I need to kill the process. I have tried to kill all the yum commands running that showed with the ps -aef | grep yum, this did not help. I have tried to

Complete removal of php and all of it’s dependencies o RHEL7

I am trying to uninstall php and all of its modules from a RHEL7 server completely and do a clean install later. Things I have tried till now using yum – sudo yum remove ‘php*’. After the above command i can still see that php is not uninstalled. Please help. Answer You could also add this option to /etc/yum.conf: clean_requirements_on_remove=1.

Linux Installation libX11-devel

I am trying to build QT4 (porting from Redhat 5 to 7 with an upgraded gcc compiler) in RedHat 7 and I was getting an error saying X11/Xlib.h can’t be found. Anyways, after doing some research most people said to install libX11-devel to get those x11 libraries. Since I am using an offline machine I can’t do “apt-get” type commands

Advertisement