how to install yum package on linux RHEL 4? [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
when i run root#localhost# yum install package_name command on linux terminal it gives:
bash: yum: command not found
because i don't have yello update and modifier package install on my linux . for that i mount my linux iso disc.and write command
root#localhost# cd /meida/RHEL_4/i386/ Disk/ 1/
root#localhost RHEL_4 i386 Disk 1# ls
but there is no package directory. and i didn't find any http url form downloading(wget) yum.x.x.x.rpm. i have linux RHEL 4 AS version installed. plz help

Yum is not compatible with RHEL 4 (FOR RHN Stuff). They don't officially ship yum with rhel4 instead use legacy 'up2date' utility. up2date is similar to yum but far less featured package management utility but good in dependency resolution. It resolves the packages dependencies in same way, yum do.
Anyway, You can get the rpm package here, http://dl.fedoraproject.org/pub/epel...oview/yum.html. Just download it and install using rpm -ivh command. don't expect, yum will download the packages from RHN. to sync with rhn you still have to use up2date.

Related

How do I install Fish Shell on AWS 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 may be able to be answered.
Closed 1 year ago.
Improve this question
I can't seem to install Fish shell on an AWS Linux instance. I keep getting the following error and can't seem to find a fix for it.
[root#ip-172-31-20-125 ec2-user]# yum -y install fish
Loaded plugins: priorities, update-motd, upgrade-helper
Repository shells_fish_release_2 is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package fish.x86_64 0:2.5.0-1.2 will be installed
--> Processing Dependency: hostname for package: fish-2.5.0-1.2.x86_64
--> Finished Dependency Resolution
Error: Package: fish-2.5.0-1.2.x86_64 (shells_fish_release_2)
Requires: hostname
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Same way as on Centos 6.
from:
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo
yum install fish
2021 update:
If you're running a newer version of AWS Linux - run rpm -E %{rhel} to see the RHEL version, and then use one of the links here for the wget command. For instance, if the RHEL version is 7, run as root:
cd /etc/yum.repos.d/
wget --no-check-certificate https://download.opensuse.org/repositories/shells:fish:release:3/CentOS_7/shells:fish:release:3.repo
yum install fish
You can use Fish's Red Hat 6 package repository, which works out fine for Amazon Linux 2:
sudo yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo
After that you can install it normally.
sudo yum -y install fish
This worked for me on release:
cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
add repo
sudo yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo
clean
sudo yum clean all
install
sudo yum -y install fish
test
[ec2-user#ip-xxx-xx-x-xx] yum.repos.d]$ fish
Welcome to fish, the friendly interactive shell
For fish 3 see the instructions on the README https://github.com/fish-shell/fish-shell#building-from-source-all-platforms---makefile-generator

Yum command is not working in fedora, when i removed the libacl package? [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 may be able to be answered.
Closed 8 years ago.
Improve this question
During updating fedora, due to error: multilib protected version found, i tried to remove and install libacl package, but when i remove libacl package using rpm --erase --nodeps libacl, yum commands stops working and i am unable to install libacl again , running yum gives this error:-
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libacl.so.1: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov 12 2013, 16:18:42)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Not only yum but when i fire any command in the terminal it gives this error:-
error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory
Due to this I am not able to install any package manually using rpm command, Someone please give me some ideas?
Manually download libacl RPM and do rpm2cpio packagefile.rpm | cpio -div and then manually copy libacl.so.1 to where it should be. Then install the RPM properly. After that, don't use --nodeps again, unless you're sure you know what you're doing! ;)

Unable to install vsftpd on centos 6 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm having trouble with installing vsftpd on centos 6. When I enter the command
yum install vsftpd
I get the following:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.widexs.nl
* extras: mirror.serverbeheren.nl
* updates: mirror.serverbeheren.nl
Setting up Install Process
No package vsftpd available.
Error: Nothing to do
And I don't know how to fix this. Does anyone have an idea? Should I add another repo and if so, how should I do this? I'm quite new to centos, I've been used to Ubuntu where I could just use apt-get to install most things.
Thanks in advance!
Install Repository
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6*.rpm
Install vsftpd
yum install vsftpd
hmm strange, yum is missing some repository where vsftpd is located. You still can download it manually:
http://rpmfind.net/linux/rpm2html/search.php?query=vsftpd&submit=Search+...&system=centos&arch=
and install it through rpm command, or add repository(not sure which one) to your yum

Determining the path that a yum package installed to [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've installed ffmpeg using yum under Redhat, and I'm having difficulty figuring out where (what path) it installed the package to. Is there an easy way of determining this without resorting to finding it myself manually?
yum uses RPM, so the following command will list the contents of the installed package:
$ rpm -ql package-name
Not in Linux at the moment, so can't double check, but I think it's:
rpm -ql ffmpeg
That should list all the files installed as part of the ffmpeg package.
I don't know about yum, but rpm -ql will list the files in a particular .rpm file. If you can find the package file on your system you should be good to go.

What package includes AB the Apache Server Benchmarking Tool in Ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm trying to find ab - Apache HTTP server benchmarking tool for Ubuntu, I'm hoping there's a package I can install for it. I decided I need to do some simple load testing on my applications.
% sudo apt-get install apache2-utils
The command-not-found package in Ubuntu provides some slick functionality where if you type a command that can't be resolved to an executable (or bash function or whatever) it will query your apt sources and find a package that contains the binary you tried to execute. So, in this case, I typed ab at the command prompt:
% ab
The program 'ab' is currently not installed. You can install it by typing:
sudo apt-get install apache2-utils
bash: ab: command not found
Another way to search for missing files, e.g. if you use zsh, want to disable command-not-found (slows things down when you misstype commandnames), or are looking for a file that is not an executable:
$ sudo aptitude install apt-file
$ sudo apt-file update
$ apt-file search bin/ab

Resources