Questions tagged [yum]

yum is a software package manager that installs, updates, and removes packages on RPM-based systems.

yum is a software package manager that installs, updates, and removes packages on RPM-based systems. It automatically computes dependencies and figures out what things should occur to install packages. yum makes it easier to maintain groups of machines without having to manually update each one using rpm.

1679 questions
330
votes
7 answers

How to list the contents of a package using YUM?

I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM.…
Lorin Hochstein
  • 51,296
  • 30
  • 96
  • 131
276
votes
18 answers

How to yum install Node.JS on Amazon Linux

I've seen the writeup on using yum to install the dependencies, and then installing Node.JS & NPM from source. While this does work, I feel like Node.JS and NPM should both be in a public repo somewhere. How can I install Node.JS and NPM in one…
Tim Fulmer
  • 8,992
  • 4
  • 22
  • 32
252
votes
14 answers

How to install latest version of git on CentOS 7.x/6.x

I used the usual: yum install git It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer versions of CentOS such as CentOS 7.
AmirHd
  • 10,027
  • 11
  • 37
  • 59
210
votes
7 answers

How do I find which rpm package supplies a file I'm looking for?

As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package, but the file appears to not to be…
wherestheph
  • 2,279
  • 2
  • 14
  • 6
183
votes
3 answers

Determining the path that a yum package installed to

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?
brettbuddin
  • 1,849
  • 2
  • 12
  • 4
152
votes
12 answers

How to make rpm auto install dependencies

I have built two RPM packages proj1-1.0-1.x86_64.rpm libtest1-1.0-1.x86_64.rpm proj1 depends on the file libtest1.so being present and it is reflected correctly in the RPM packages as seen here: user@my-pc:~$ rpm -qp --requires…
HAL
  • 3,663
  • 3
  • 17
  • 28
141
votes
10 answers

How do I install Maven with Yum?

I'm trying not to learn much about either yum or maven. I've inherited this code and I don't want to spend more time than I have to in this environment. I've got yum. My installation "has" ("is attached too"? "knows about"?) two repos: the Amazon…
Malvolio
  • 38,966
  • 24
  • 87
  • 125
116
votes
22 answers

yum error "Cannot retrieve metalink for repository: epel. Please verify its path and try again" updating ContextBroker

I'm trying to update Orion ContextBroker using the command yum install contextBroker. Unfortunatelly I get the following error: Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Error: Cannot…
JosepB
  • 1,913
  • 2
  • 14
  • 30
102
votes
5 answers

How to Install gcc 5.3 with yum on CentOS 7.2?

I am using CentOS 7.2 When I use yum groupinstall "Development Tools", gcc version is 4.8.5, like this: I would like to install gcc 5.3 How to approach this with yum?
sunshine
  • 1,785
  • 3
  • 14
  • 19
66
votes
2 answers

How to list installed packages from a given repo using yum

I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something". But now I am faced with a problem. The repo I am interested in does not have that "something" for…
Mike Starov
  • 6,201
  • 7
  • 33
  • 37
65
votes
7 answers

Upgrading PHP on CentOS 6.5 (Final)

I'm trying to update my PHP (currently v:5.3.3 to the latest stable PHP build) but it's not playing ball and it's saying there is nothing to update. Any help would be useful. Keeps saying: No Packages marked for Update
BCLtd
  • 1,379
  • 1
  • 15
  • 37
58
votes
6 answers

Yum crashed with Keyboard Interrupt error

I installed the newer version of python (3.2.3) than the one available in Fedora16 (python2.7) And now yum stops working. It shows the following error. [root@localhost yum-3.4.3]# yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: …
SSAMEERR
  • 581
  • 1
  • 4
  • 5
57
votes
10 answers

Upgrade python without breaking yum

I recently installed Python 2.7.3 on a CentOS machine by compiling from source. Python 2.7.3 is installed at /opt/python2.7 and when I installed it I just changed /usr/bin/python to point to the new version. This apparently is wrong though because…
tbeauvais
  • 1,518
  • 4
  • 17
  • 22
55
votes
22 answers

Amazon EC2 instance can't update or use yum

I am using Amazon's tutorial for installing a LAMP server. The first several instructions involve using yum, but every single way I have tried to do it has resulted in the same message. I have found a few other recent questions about the same issue,…
Andrew Johnson
  • 688
  • 1
  • 6
  • 9
50
votes
3 answers

Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7

I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with “yum remove mariadb mariadb-server”, after that I reinstalled it with “yum install…
Stack Over
  • 571
  • 1
  • 5
  • 7
1
2 3
99 100