Solved

RPM Install File Conflicts

Posted on 2011-09-11
6
652 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wipe a usb using python 5 64
winscp 000webhost.com 6 74
VMware Tools Install On Linux Problem 3 84
python - find anything after $ question. 9 18
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

831 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