Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rpm]

RPM is a package management system intended primarily for Linux distributions.

45
votes
2answers
65k views

CentOS: List the installed RPMs by date of installation/update?

I'm on a CentOS machine. I updated and installed some packages a few weeks back, but I don't remember the name of every package or the names of every dependency. I used yum. Can I list the packages ...
27
votes
3answers
53k views

How to use yum to get all RPMs required, for offline use?

I have one server with net connectivity, where I can use "yum install $PACKAGE". I want some yum command, like yum cache-rpms $PACKAGE $DIRECTORY such that all required RPM files will be downloaded to ...
4
votes
1answer
1k views

How to get ALL kinds of reverse package dependencies: reverse-depends pendant for non-Ubuntu distributions

I would like to find all possible reverse dependencies (no need for recursive reverse dependencies) of a certain package p, that is, I want to find all packages which depend on p. This shall include ...
48
votes
2answers
129k views

Local installation of .rpms using YUM

I'm asking this question cautiously because I don't want to get this wrong. I have a program_name.rpm file saved locally on my server (CentOS 6.5). I have installed it previously just by navigating ...
19
votes
3answers
100k views

why can't I install packages with rpm? I get “transaction lock” [closed]

I'm having problems with yum and I am trying to re-install it. I've download yum.3.2.0-40-el6.centos.noarch.rpm. When I try: $ rpm -ivh yum.3.2.0-40-el6.centos.noarch.rpm I get: error: can't ...
0
votes
2answers
142 views

Install Java 6 from Oracle to Debian Lenny

Since Java 6 is not available in Debian 5 I decided to take it from Oracle. I have downloaded Java 6 SDK in file jdk-6u45-linux-i586-rpm.bin. But how to install it? I executed jdk-6u45-linux-i586-rpm....
45
votes
2answers
84k views

yum install in user home for non-admins

I am a non-admin user on a large computer system. I need some up to date packages that are not installed on the system. I want to use yum to install them. As a user without sudo, admin, or root access,...
60
votes
1answer
80k views

How do I force yum to install without prompting the user, using bash?

I'm writing a bash script to install php5.4 and I'd like to automate this for a test VM. The rpm command I have is: rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm yum install php54w Now, in ...
17
votes
3answers
28k views

Installing a package locally to a user - best practices?

I want to install Git locally to a user on a RHEL server (I don't have root access) What would be your cleanest/ most organized way of installing software to a local user account? Installing ...
9
votes
4answers
13k views

How to programmatically determine the highest version kernel RPM installed?

What I want to script is something along the lines of: if [ uname -r is not == highest version of kernel RPM installed ] then echo "You need to reboot to use the latest kernel" fi The problem is, ...
10
votes
2answers
9k views

Using zypper, how can I remove all packages installed from a specific repository?

Say I've added a repository using zypper ar. Then, I've gone and installed multiple packages from that repository, but now I want to remove all of them. Is there a command that allows me to remove ...
8
votes
5answers
7k views

Different list of installed packages reported by rpm compared to yum

I want to have Server B to have exactly the same setup as Server A. Server A and B have the same Arch and same hardware. My plan is to have a list of all installed things on Server A and install it ...
3
votes
1answer
10k views

Getting “cpio: Bad magic” when trying to rpm install into a mounted Logical Volume

I am trying to follow the Xen guide to provision a domU using package installation of the Fedora 15 release (the dom0 is CentOS 5.6). I've run the rpm install command with an alternate root to a ...
3
votes
4answers
2k views

Can I use grep matches to execute command?

I need to upgrade php from 5.3 to 5.4. I've installed it with rpm. I want clean install: delete all 5.3 packages, and install all necessary 5.4. Here is the command to see all installed packages: rpm ...
2
votes
1answer
3k views

how to find which repo does one rpm package belong to

How to know which repo does one rpm package belong to? I searched the yum manual, and I didn't find the option. And it is useless to use yum list installed.
2
votes
1answer
965 views

Can rpm handle an install of another OS into another Logical Volume?

I am trying to install fedora as a domU under a CentOS dom0 using the method outlined in The Book of Xen. I have asked another question regarding a consistent error message of cpio: Bad magic when I ...
1
vote
2answers
21k views

How to run a script when install a rpm package?

I try to build rpm package. I follow here. I want to run a script (bash or python) when run command as "rpm -Uvh mytest-1.0-1.el6.noarch.rpm" . Could run a script when install a rpm package? How?
0
votes
1answer
249 views

RPM database not seeing file installed as part of RPM

Intro: The following was done on a RHEL 6.9 32bit OS. I installed the oracle (not openjdk) version of JRE rpm using the rpm -Uvh command. I then built a package using rpmbuild that requires ...
166
votes
12answers
111k views

What are the pros/cons of deb vs. rpm?

For whatever reasons, I've always used RPM based distributions (Fedora, Centos and currently openSUSE). I have often heard it stated that deb is better than rpm, but when asked why, have never been ...
46
votes
5answers
169k views

How to check available package versions in rpm systems?

If I want to check available versions of a package in Debian, I run apt-cache policy pkgname which in the case of wajig gives: wajig: Installed: 2.01 Candidate: 2.01 Version table: *** 2.01 0 ...
23
votes
5answers
19k views

Is there is a PPA-service equivalent in the Fedora world?

For Ubuntu there is this convenient PPA service available where you can get your own package repository. You can put there source packages which are under an open source license, e.g. development ...
52
votes
7answers
50k views

Open a RPM on a Mac?

I am on a MacBook Pro running Apple Leopard (Mac OS X 10.5.8). I would like to unpackage a RPM and view the files contained within the wget-1.11.4-2.el5_4.1.src.rpm . I don't need to install the ...
16
votes
2answers
16k views

Reinstalling packages with missing/corrupt files

Following an unclean shutdown and a colourful fsck, a whole bunch of files have gone missing. The output of 'rpm -Va' is several hundred lines long (mostly missing files but also some checksum and ...
8
votes
2answers
27k views

How to build an RPM package from the installed files?

There are two machines, identical version/arch of SLES. On machine #A there is a "foo" software installed that we can see using rpm -qa. On machine #B the "foo" software needs to be installed. The ...
57
votes
1answer
64k views

Do I need to do something about “Delta RPMs disabled”?

While updating packages on our CentOS server I got the following message: Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. Do I need to do something about that?...
24
votes
2answers
94k views

Where do installed RPMs go?

I download and install packages on my Red Hat Enterprise Linux Server 6 machine using YUM package manager in command-line mode. When I install apk files on my Android phone, they go to /data/app ...
12
votes
3answers
33k views

How to install packages to a custom location in centos6

This is a set up I am doing for a college to promote Linux use in their labs. I have a shared location, let me call it /tp; I want to install all my libraries and packages in this location just like ...
13
votes
1answer
4k views

What is the proper way to set SELinux context in an RPM .spec?

I am trying to build an RPM that targets RHEL4 and 5. Right now I call chcon from %post but multiple Google entries say "that's not how you are supposed to do it" with very limited help on the right ...
9
votes
2answers
16k views

How to unpack, modify, rebuild and install a SRPM

I would like to modify a Fedora 15 package (gnome-shell-extensions-alternative-status-menu). It's a small modification (reverting this commit). Using yumdownloader I'm able to download a SRPM (gnome-...
12
votes
2answers
6k views

How to use Bash for sh in Ubuntu

I am installing a huge program, which has its resources as an rpm file. It stuck at the line of #!/bin/sh SCITEGICPERLBIN=`dirname $0` SCITEGICPERLHOME=`dirname $SCITEGICPERLBIN` if [ $...
7
votes
3answers
9k views

When importing a key during a yum installation, where is that key stored?

I'm installing a piece of software for which I had to use a third-party repository. After adding the repository with rpm -Uvh http://[site], I installed with yum install [package]. One of the ...
9
votes
2answers
8k views

Is it stable to use epel and rpmforge in the same time?

So after a fresh Scientific Linux 6.3 Desktop install, I: yum install rpmforge-release && yum update and yum install epel-release.noarch then: yum install wine gparted cups-pdf &&...
4
votes
2answers
13k views

Extract the spec file out of an RPM

I have an RPM that I built. And I am looking to figure out how to extract the Spec file out of it. I have tried: rpm --scripts -qp sampleBuild.rpm That didn't work. Does anyone know the proper ...
3
votes
1answer
2k views

Unpacking kernel-source rpm off-system (OpenSuse)?

I'm using OpenSuse 11.2 from a LiveUSB USB flash/stick, which arguably has not much place on it. I need to get the Linux sources for this version of OpenSuse, as they are needed to build a driver for ...
3
votes
1answer
10k views

Is there an all-in-one command for RPM to downgrade a package to an older version?

I want to downgrade a couple RPMs. Is there a switch combination for that? For example, when upgrading, I usually run rpm -Uvh foo.rpm but my understanding is that the -U switch means that it only ...
1
vote
2answers
1k views

httpd-devel requires outdated version of glibc-common on CentOS 6.3

httpd-devel requires an outdated version of glibc-common on CentOS 6.3 x86_64 and Apache/2.2.15. It wants 2.12-1.80.el6 and I have 2.12-1.80.el6_3.3.x86_64 installed (via CentOS @update repo) Here is ...
8
votes
3answers
4k views

Download ALL rpms for a product

I have two CentOS machines, one 6.3 box (A), and another CentOS 6.1. (B) 6.3 box is with internet connection, 6.1 box is without internet connection. I want to download ALL dependencies of a product ...
4
votes
1answer
19k views

/proc/sys/kernel/hung_task_timeout_secs error

I am building a CentOS 6.2 webserver on a Hyper-V Cluster and have hit a major issue. The current setup is this: Operating System: CentOS 6.2. Minimal Server Install Installed software includes: ...
4
votes
1answer
11k views

How can I install a local RPM using only the local dependency RPM files?

In my CentOS machine (VirtualBox VM, altough I assume this shouldn't matter), I have a directory including an RPM file and all of its dependency RPM files. I want to install the RPM along with all of ...
3
votes
2answers
14k views

check if latest openssh patch provided by RHEL is installed

We have encountered a security threat in one of our RHEL servers which says the SSH server is configured to use Cipher Block Chaining. As far as I know, the RHEL systems provide security updates ...
3
votes
2answers
8k views

RPM command stuck/FREEZE when installing RPM file

I want to install the following rpm, but for some reason RPM is stuck or frozen and will not install the RPM package. I can't stop it by control-C. Please advise what could be the problem? root]# ...
2
votes
3answers
71 views

How to topologically sort installed rpm packages?

I want to sort topologically, according to dependencies, all installed rpm packages on my Fedora with most required packages to be on top (for example glibc) and least required packages to be on ...
1
vote
1answer
7k views

Linux Fedora 20: how do I deal with “ import read failed(2)”?

I have been struggling to get yum to work when trying to install emacs in my recent installation of Fedora 20, and posted the question, on this site. "How can I get yum and the internet browser to ...
0
votes
2answers
5k views

Upgrading Python 2.6. libpython2.6.so.1.0 missing

I am upgrading python on an offline 64bit RHEL 6.4 box and am having to do it via RPM's rather than yum. I am trying to upgrade python from 2.4.3 to 2.6 so I can build nodejs from source. I am ...
11
votes
3answers
7k views

What is DRPM and How does it differ from RPM?

Doing an update on my CentOS 7 box and I noticed that there was a handful of DRPMs being installed. After doing some searches on google, there is no straight up Answer for this question so I thought ...
8
votes
4answers
18k views

read only TMOUT variable – workaround to disable automatically exit shell when there is no activity

We have here a read only Bash variable. I am not allowed to unset that variable. $ echo $TMOUT 1800 As a workaround I wrote those lines (that my session don't exit) #!/usr/bin/perl $|++; while (1) ...
7
votes
2answers
46k views

How do I get UUENCODE to work?

I have a server that I have inherited that has an older version of Redhat installed due to software requirements and now there is a need to use UUENCODE to allow email attachments. The uuencode and ...
6
votes
1answer
713 views

Why does `man -k cron` say `vixie-cron (rpm)` for some results, and how do I read those pages?

I'm trying to find out some details regarding cron and /etc/cron.d/ on a RedHat system. Ironically, my answer is viewable within the vixie-cron-*.src.rpm for this package, but the the man pages for ...
5
votes
2answers
162 views

Does anyone bother to remove rpmkeys?

My Fedora 26 system still has rpmkeys installed from Fedora 25 and RPMFusion for Fedora 25: $ rpm -qa gpg-pubkey --qf "%{version}-%{release} %{summary}\n" fdb19c98-56fd6333 gpg(Fedora 25 Primary (25) ...
4
votes
3answers
5k views

get the apache document root using shell script

I am creating an RPM and in the pre stage, I want to determine apache's document root so I can copy the web application files there. First, I check if apache is installed. If apache is installed, ...