Solved

RPM Install File Conflicts

Posted on 2011-09-11
6
633 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

758 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

21 Experts available now in Live!

Get 1:1 Help Now