Solved

RPM Install File Conflicts

Posted on 2011-09-11
6
641 Views
Last Modified: 2012-05-12
I've been testing RPM installation with a sample package that originally had just 3 files.  I've been testing permissions and preinstall, and repacked a number of times, and successfully installed after most of them.

Now I've created a package that is much larger with many more files in package.spec.  When I tried to install it, I get error messages that there's a file conflict between the 3 original files and every version of the package that I've installed on the machine.  

What does this mean?
0
Comment
Question by:jkavx
  • 2
  • 2
  • 2
6 Comments
 

Author Comment

by:jkavx
ID: 36519708
file /home/userId/standalone/listener.jar from install of testFinal-1-2.7.noarch conflicts with file from package testFinal-1-2.6.noarch
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 100 total points
ID: 36521541
It might work if you remove the old package first (with rpm).
0
 
LVL 4

Expert Comment

by:Ryan Weaver
ID: 36522082
Are you installing or upgrading the package?

Installing: rpm -ivh, will leave the oiginal package in place and maybe causing the conflict.
Upgrading: rpm -Uvh, will replace the old installed rpm with the new one you specify.

If you are getting the conflict message even when upgrading, there may be something else going on, but you can add --replace-files to the command line to have rpm replace the files that are conflicting.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 34

Expert Comment

by:Duncan Roe
ID: 36522131
As I understood it, you were developing the package. Is that correct?
0
 

Author Comment

by:jkavx
ID: 36522603
I'm just testing the development of the package at this point.  Once this is ready, an SA will do the release.  I'm never worked with RPM before so I'm trying to understand how this works.  I'm doing an install myself in my home directory just to confirm that the package has been created correctly.

So generally speaking, there would be an initial install, and then subsequent upgrades to the package would change the version number, and be installed with the -U option?
0
 
LVL 4

Accepted Solution

by:
Ryan Weaver earned 400 total points
ID: 36522682
Yes, the -U option will upgrade a previously installed package. The -i will try to install the package even if there is already a package of that name installed.

For example, new kernels are installed with -i so that a previously known good kernel is always available to boot from.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS CLI issues with Tags 3 66
Linux as a middle box 7 64
CentOS 7 Installation 7 60
linux(debian) mouse poor performance 4 18
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now