LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM: how to skip user created files during RPM upgrade (http://www.linuxquestions.org/questions/linux-newbie-8/rpm-how-to-skip-user-created-files-during-rpm-upgrade-752567/)

purnima_sahoo 09-04-2009 01:12 AM

RPM: how to skip user created files during RPM upgrade
 
I am trying to create an RPM package. However when the RPM package installs, it need to skip some files that might have been created by the user after the last installation and use of the program. Is there a way to build RPM package that just skips the user created content in the installation dir.

For example:
lets say my RPM package creates the following dir and creates files required by my application, say .app files.

/ppm/config/

However the user may also create a few .xml files in the same dir. How will I package my program that will not delete the .xml files from the above dir and will just create the application files (.app files).

I will appreciate any help.

markush 09-04-2009 01:16 AM

Hello and wellcome to LQ,

I do not understand the question. On my systems the user-related files are in their home-directory and have nothing to do with an update. How can a user create files in a programm-directory without root-permissions?

Markus

purnima_sahoo 09-04-2009 02:56 PM

Thanks a lot. You already answered my question. Now, I am directing all the user-related files of my application to the home directory.


All times are GMT -5. The time now is 01:25 AM.