Questions tagged [rpm]
RPM Package Manager is a package management system used primarily for GNU/Linux operating systems. It used the .rpm file format.
714
questions
0
votes
0
answers
3
views
yum unable to find a specific package in private repo
I have a really weird problem. I've setup my private yum repo, it is serving the rpm just fine, EXCEPT one rpm.
Let's say I've build and copied over all of my rpms to my custom repo directory, ...
0
votes
1
answer
30
views
Can you force replacement of files marked %config in RPMs
If files in RPMs are marked %config or %config(noreplace)¹, running something like dnf update or yum update will not touch (modified) configuration files, but leave the old ones in place and create ....
1
vote
1
answer
33
views
"Yum update" how to delete ghost package?
How do I delete package insign-3.43.3-1 from the "database" for yum update?
* yum update insign shows me package 3.43.3-1.
* yum update would fail because I already removed the 3.43...rpm ...
0
votes
0
answers
77
views
RPM and YUM not working on Centos7
When I try to use yum update or install package by rpm the below error happened:
rpm: /lib64/libnssutil3.so: version 'NSSUTIL_3.59' not found (required by /lib64/libnss3.so)
How can I Fix this issue?
...
0
votes
0
answers
35
views
Can't install npm on CentOS 6 due dependency issues
I have a CentOS 6 machine that I want to install npm on. Whenever I do a normal yum install npm I get an error saying that I need to install krb5-devel which doesn't show up on yum search so I ...
2
votes
0
answers
119
views
Module RPMs makes kickstart installation of RHEL based distributions unusable
The title of the post has it all. The first steps to migrate from CentOS 7 to Rocky Linux 8 fail (in my eyes) because of module RPMs.
If something is installed the traditional way via dnf, dnf notices ...
0
votes
0
answers
27
views
Installing XtraBackup on Centos 6
I’m trying to install XtraBackup on centos 6 using this guid but i get these errors:
Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (C6.10-base)
Requires: libmysqlclient.so.16()(64bit)
Error: ...
0
votes
0
answers
38
views
How to check if rpm virtual package is provided?
I want to check if java-11-headless is installed. java-11-headless is a virtual package and it is provided e.g. by java-11-openjdk-headless.x86_64 package. I do not care what exactly package provides ...
0
votes
0
answers
395
views
CentOS7 Remi-PHP81 Followed steps. PHP command not found
Trying to install and enable PHP in a CentOS VPS. Found repository information from Remi's RPM Repository - Configuration wizard. Followed steps to install and enable PHP81. But php -v gives command ...
0
votes
0
answers
175
views
When migrating from RHEL 7.x to RHEL 8.x (or RHEL-like) how does one resolve Java enterprise application dependencies on apache-commons packages?
With the move from RHEL 7 to RHEL 8, RedHat dropped tomcat from the distribution, refocusing their efforts on JBoss as a separate project and dropping tomcat. I have a legacy application to support ...
0
votes
2
answers
7k
views
How to force install an rpm?
I have a gitlab pipeline where I will be installing latest rpm everytime.
Some times, even if the target machine is changed manually, the rpm should be installed successfully.
But some how I am ...
0
votes
1
answer
80
views
How to check if an rpm is completely installed on centos?
We have an rpm to our project and that contains pre and post install scripts.
While the post install script is still running, yum list is showing the package name in it.
sudo yum list installed ...
0
votes
0
answers
63
views
AppStream dependencies in offline kickstart medium
I have the requirement to provide an installation medium based on Rocky minimal, which contains several packages out of the AppStream repo (but not all, due to media size constraints).
To accomplish ...
1
vote
0
answers
676
views
Unable to Downgrade OpenSSL from openssl-1.0.2k to openssl-1.0.1e-58 due to openssl-libs-1:1.0.2k-25.el6 dependencies
Due to issues with old CentOS6 machines and the Let's Encrypt root certificate that recently expired I found a solution online which involves installing a Patched version of openssl-1.0.2k from ...
0
votes
0
answers
383
views
dnf: missing library, but does exist
Trying to install libmediainfo with dnf, got an error about missing library that does exist.
How to solve this ?
Here is dnfoutput:
$ sudo dnf install -v libmediainfo --allowerasing
DNF version: 4.7.0
...
0
votes
1
answer
48
views
How to deduce remote location of RPM that has been installed?
Suppose I had the following entries in /var/log/dnf.log:
elfutils-default-yama-scope noarch 0.185-1.el8 baseos 49 k
elfutils-devel ...
0
votes
1
answer
170
views
yum: local repository and modified package
Following up advices to my other question I have set up my local RPM repository on Red Hat 8 machine, placed my private packages in there and am now able to install, update etc.
However, there is a ...
0
votes
1
answer
155
views
How to install Data Protector RPM patch in Linux?
Well, HPE Data Protector has a long tradition of doing odd things.
For example the way an rpm "patch" is installed is not via -U or -F, but differently, which brings me to my question:
In ...
0
votes
1
answer
2k
views
yum: install local RPMs and all local dependencies
I have my locally generated rpm packages (the main package and its dependencies) located in my home directory. The spec file defines dependencies. I'd like to install it with a single yum or dnf ...
0
votes
1
answer
541
views
rpm: define my own variable in spec file
Is there a way to declare my own variable inside of a spec file and refer to it as %{my_var} ?
I see there is %define and %global macros, but seems none of it works for my case.
2
votes
1
answer
1k
views
rpm: how to disable debuginfo
OS RedHat 8.4
I know that having %debug_package macro in a spec file will generate debuginfo for a package, and will produce mypackage-debuginfo-<VERSION>.<ARCH> rpm. However the funny ...
2
votes
0
answers
393
views
Yum install/update hangs at the very end, unable to kill via ctrl-c
So I've got a group of servers (all RHEL 7.9) whose RPMDBs appear to have become corrupted. Not sure how or when, but no matter.
I fixed the DBs using these instructions. After that, any attempt to ...
0
votes
1
answer
794
views
How to install another rpm as dependency to another rpm?
We have built application rpm file using fpm.
There we have set python3 as dependency, so it installs automatically before the main rpm.
But it installing 3.7. To replace that with 3.8, we need to ...
0
votes
1
answer
2k
views
How to set python3 command to work in aws linux 2?
I followed first approach in this link to install python 3.8
Steps I followed:
sudo yum install -y amazon-linux-extras
amazon-linux-extras | grep -i python
sudo amazon-linux-extras enable python3.8
...
1
vote
3
answers
869
views
Converting RPM packages for debian fails "due to shell metacharacters"
I am trying to convert the "MegaRAID Storage Manager" RPM packages to debian dep packages. I'm using the alien package therefor as explained here:
https://hosting-tutorials.co.uk/tutorials/...
0
votes
1
answer
588
views
Difference between zypper and rpm for installed packages
I'm looking at a reliable way to find how many installed packages I have on my OpenSUSE Leap 15.3 system. I tried:
# number of available packages in the repos
vm-admin:~ # zypper se -s | wc -l
55800
#...
1
vote
3
answers
113
views
Library Won't Update
I'm trying to update my libarchive library on CentOS 7. Currently, I have version 3.1.2. If I type the following command, here is the result:
# rpm -q libarchive
libarchive-3.1.2-10.el7_2.x86_64
I ...
0
votes
1
answer
93
views
Make yum not installing dependancies if main package failed
I have 3 packages corepkg, corepkg-optB and corepkg-optC. corepkg-optC depends on corepkg-optB, corepkg-optB depends on corepkg.
I've created a repo of these 3 packages. When I run yum install corepkg-...
0
votes
1
answer
437
views
Can you elaborate on "yum install --downlaodonly"?
You need to install it in an environment where there is no network.
So I was installing via RPM.
In the meantime, a crash occurred and the installation could not proceed.
I found yum install --...
0
votes
0
answers
790
views
RPM failed dependency that's already installed
We have an old dev server for Centos 6 I want to update Openssl to a modified version 1.0.2k (we have got a C8 server to replace it, but trying to update the old one in the interim).
I have built the ...
0
votes
1
answer
246
views
Cannot get latest-version package from multiple yum repos
There are two rpm repos in my CentOS 8.1.1911. Details are as follows:
# virt-1.repo
[appstream]
name=CentOS Linux 8-stream - AppStream
baseurl=http://mirrors.ustc.edu.cn/centos/8-stream/AppStream/$...
0
votes
1
answer
77
views
Restore permissions to all files in folder using RPM
Using chmod, I accidentally changed everything in a bin folder and now sudo/su doesn't work.
I know rpm -q --whatprovides can provide which RPM provides a specific file. and rpm --setperms can restore ...
0
votes
1
answer
163
views
Should I build my Haskell app via the RPM SPEC file or try to use a (reproducible) binary from the CI pipeline
I haven't built an RPM from scratch in 20 years. So we can effectively say "never".
[edit] The requirement for RPMs is to provide roll-backs, version control, and such. It is non-negotiable.
...
1
vote
2
answers
950
views
Auto select solution for zypper
I need to automate package installation with zypper that requires selecting a solution. How can this be done in non-interactive mode?
# zypper in /tmp/repos-sles15-sp2-current.x86_64.rpm
Loading ...
1
vote
0
answers
393
views
RHEL 7.9: rpm --eval "%dist" is now .el7_9 instead of just .el7
Here, we've recently upgraded some of our systems from RHEL 7.8 to RHEL 7.9, and I'm facing an issue related to the "dist" returned by the rpm tool.
In some scripts, we share between RHEL7 ...
1
vote
0
answers
284
views
RPM --queryformat FILEMD5S checksum is different than md5sum of machine
The RPM man page says:
The FILEMD5S Tag The FILEMD5S tag is used to display the MD5 checksum
for each of the files that comprise the package.
Array: Yes (Size: One entry per filemd5s)
Used with ...
0
votes
0
answers
574
views
Proper way to package a NodeJS application with rpmbuild
I have created my first rpm package for a NodeJS app which is ran as a systemd service.
Since I do not want to package the node_modules folder with the rpm (AFAIK npm install is system/node version ...
0
votes
1
answer
569
views
install docker in offline Centos Server
I want to install docker into a offline Centos 7 server, but I have missing dependencies.
I have executed the following instruction into my local virtual machine ( Centos 7 with kernel 3.10) to ...
0
votes
0
answers
272
views
How I could install NGINX from nginx.org repo using yum in CentOS-8?
Problem: After enabling repos, like I did for centos-7, yum just does not see any Nginx RPMs from nginx.org repo:
# cat << 'EOF' > /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
#baseurl=...
0
votes
1
answer
151
views
After power failure restart both DNF and YUM stopped working, do nothing, not even metadata check
My environment, happily functioning for a long time, experienced a power outage - of course, the immortal power supply was offline at the time, needing new batteries. As the administrator, I know ...
1
vote
2
answers
233
views
How can I best get the mpt2 drivers back in to Centos8 [for maas images and openstack ironic/image builder]
I need the mpt2sas drivers to get Centos8 to work with my servers. Thanks to them using the rhel nutered kernel the device id's have been removed and wont load with out using a dd disk. I have both ...
1
vote
0
answers
843
views
Segmentation fault when execute yum or rpm any command
I am facing some issues on centos-7 when I execute yum install, yum upgrade, yum installed list, yum search, yum list installed, rpm then getting an error Segmentation fault.
system Logs:-
segfault at ...
1
vote
1
answer
734
views
RPM Spec files: Set %config files from a list of files
Example snippet of a SPEC file:
...
%install
unzip $RPM_SOURCE_DIR/APPLICATION-%{version}.zip -d %{buildroot}/
find %{buildroot} -type f ! -name "*.conf" | awk -F %{buildroot} '{print $2}...
0
votes
1
answer
3k
views
Oracle Linux 8.3 can't find libyaml-devel
I'm evaluating Oracle Linux as a CentOS alternatives. During my tests I have to compile a package depending on libyaml-devel but the lib isn't present in the repo.
I had the impression Oracle Linux ...
0
votes
1
answer
89
views
I can use my local apt repository as a local yum repository?
I'm a newbie in Linux. I have a local apt repository. I didn't want to set up a separate machine and http server for my rpm packages and occupy disk. I wonder if there is some way I can use my local ...
0
votes
1
answer
108
views
stdout does not display `rpm -qa` output without redirect
On a SLES 12 virtual machine the command rpm -qa does not return anything to stdout.
~> rpm -qa
~>
The command finishes after 1 or 2 seconds, so it clearly generates some data. Only when the ...
0
votes
3
answers
1k
views
`yum`/`dnf`/`rpm` equivalent to `dpkg -l` for RHEL/CentOS?
Is there an equivalent yum, dnf, or rpm command to Debian/Ubuntu's dpkg -l command to list both package names and installation status?
0
votes
1
answer
1k
views
update kernel version that higher then next rhel update
we have rhel server with the following details
kernel version - 3.10.0-327.el7.x86_64
more /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
from dmesg we see many problems ...
0
votes
1
answer
2k
views
yum history list + how to verify rpm historical status
The rpm command gives every package installed a transaction ID. The transaction ID is a Unix time stamp (number of seconds since January 1, 1970). You can then perform some operations on packages ...
0
votes
0
answers
50
views
why there are missing rpms when installing the same rhel ISO on different machines
we have a very strange behavior after installing new machines with rhel 7.x ( FROM ISO INSTALLER )
we notice that rpm - libcgroup , isn't installed on the current new machines
while before couple ...