Solved

RPM Install File Conflicts

Posted on 2011-09-11
6
664 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
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.

695 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