RPM Updation & Keeping User Change files during removal

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat RPM Updation & Keeping User Change files during removal
# 1  
Old 07-14-2010
RPM Updation & Keeping User Change files during removal

Hi All,

I have a RPM for an Java based application. Currently it works fine.

But recently I want to implement that when newer packages gets installed over the older one, the rpm should only update the older files with the newer one (I know this could be done by rpm -Uvh xxx.rpm), but it should not update any such file changed by the user (say a config file).

Also, during rpm removal process it should only remove only those files which were got installed during installation time, not any files which were added after post-installation process.
Current for this I have "postun" script which removes everything, but I want to keep the user added files as it is.

Can I achieve by any rpm commands or by other means.

thanks.

Last edited by jw_amp; 07-14-2010 at 03:08 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Q on RPM, conditional install or removal, like installf, removef

I am creating binary RPM on RedHat 6 and would like to do this: at install time, depending on situation, install a file or not install it For comparison, I do this on solaris using "installf", is there a way of achieving similar functionality in RPM? And conversely for conditional... (4 Replies)
Discussion started by: ad101
4 Replies

2. Shell Programming and Scripting

Shell script to find files in dir and updation

Hi, I have the shell script requirement mentioned below : List all java and c files or all files in directory and sub directories' in folder structure in current dir. then search for pattren1 in all files globally and replace with other string . And also check the date... (3 Replies)
Discussion started by: ammulu
3 Replies

3. Shell Programming and Scripting

Keeping std & err outputs alive and feed one log file in a one-shot way

Bonjour, I have a large script with a lot of print statements and misc commands. Standard and error outputs are redirected like into the following code : #!/usr/bin/ksh LOG=/<some dir>/log > $LOG exec >>${LOG} 2>>${LOG} print aaaaa print bbbbb print ccccc ... some_cmd That way,... (5 Replies)
Discussion started by: Fundix
5 Replies

4. OS X (Apple)

Scripting User Account Removal

Ok, so I've been looking all over the place for how exactly to do this and I've become so bombarded with information I finally decided I'll pose the question here. I'm not a programmer or anything that hardcore, but if I see things already implemented and working examples I can easily learn and... (17 Replies)
Discussion started by: panacea
17 Replies

5. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

6. Shell Programming and Scripting

check files updation

Hi All, Can anyone help to write the script to check files updation? i have files as mentioned below. which will be updated some time. i just want to check the last file is updating the data for last 15 mins or not. if its not updating i want to print NOT OK. if its updating data i want... (1 Reply)
Discussion started by: steve2216
1 Replies

7. Shell Programming and Scripting

to check files updation in sys time

Dear All, Pls help me on this issue. i want to write a script to check whether files updation happening in cuttent time or not. i have set of files in directory which wil update in time basis.. Requirement: If the files are updating in system time i just want to print "files are... (6 Replies)
Discussion started by: steve2216
6 Replies

8. Red Hat

RPM Installation & Removal issue

Hi, I created an RPM for one of our internal serer: tel-gw--2010.05.1.0-SNAPSHOT-1.rpm What happened I Installed for 5 times, and it get installed (/usr/tel-gw/) & added 5 entries into rpm db. And when I query RPM db as "rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1", it shows 5 times in... (0 Replies)
Discussion started by: jw_amp
0 Replies

9. UNIX for Advanced & Expert Users

Keeping an eye on all user activities

I am responsible for administering 6 Tru64UX servers. I need to keep an eye on all the commands executed by all the users. Is there a way where I can save the commands executed in a seperate folder and then keep checking the list every now and then. How can do it ? (5 Replies)
Discussion started by: shauche
5 Replies

10. UNIX for Dummies Questions & Answers

How would I telnet & change user password automatically in a script

I would like to create a script that logs into a list of several servers 50+ and changes my password all at once. Every 60 days we are required to login to each system and change our passwords or else they expire and our login account is deleted. I have an idea on how I could do this but... (4 Replies)
Discussion started by: darthur
4 Replies
Login or Register to Ask a Question
ceve(1) 							   USER COMMANDS							   ceve(1)

NAME
ceve - parse package metadata SYNOPSIS
ceve [-output-type output-type] [-output-file output-file] [-input-type input-type] [-extract-cone package=version] [-cone-dep-types code- dependency-types] [-stop-extraction package=version] [-dose-date yyyy-mm-dd] [-dose-archive archive-name] [-resolve-dependencies] [-rpm- versions] [-debian-versions] [-verbose] [-help] files [-ignore-file-deps file] DESCRIPTION
Ceve is a generalized metadata parser. It reads package specifications, extracts package metadata from them, performs some manipulations, and outputs the package metadata in one of several formats. OPTIONS
-cone-dep-types list A comma-separated list of dependency types to use for dependency closure generation. By default, all dependency types are used. Pos- sible values are: o conflicts o depends o enhances o predepends o recommends o replaces o suggests -debian-versions Force usage of the Debian version numbering scheme, as well as the Debian syntax for virtual packages (dependencies with a version specification cannot be satisfied by a virtual package). -dose-architecture architecture Use architecture as the default Dose architecture. -dose-archive archive Use archive as the default Dose archive name. -dose-date date Set date as the lifetime for the packages to add to a Dose database. -extract-cone package Only output the package package and its dependency closure. The package specification can be either a package name, or a package name and version in the form name=version. This option can be abbreviated as -x. -help Not particularly useful, given that you're already reading this manpage. -input-type input-type The input type. Possible values are: o debian One Debian package (.deb) o debian-pool A Debian pool or cache file o rpm One RPM package o hdlist An uncompressed RPM hdlist file o pkgsrc A pkgsrc pkg_summary file o egraph A n EGraph file (GraphML-based) o synthesis-hdlist An RPM synthesis hdlist (uncompressed) This option can be abbreviated as -p. -output-dir directory Set the directory to output to. This is only useful when using the dose output type. -output-file file Set the file to output to. This option can be abbreviated as -o. -output-type output-type Set the type of output to produce. Possible values are: o prettyprint Pretty printer. o egraph EGraph format (GraphML-based) o dose Dose database format (use the -output-dir option to specify which directory to write to) o oz Oz data structure o graphviz GraphVIZ graph o tart or cnf CNF formula, readable by Tart This option can be abbreviated as -t. -resolve-dependencies If specified, resolve dependencies so that a dependency on a virtual package is replaced by the disjunction of all packages that provide the virtual package. -rpm-versions Force usage of the RPM version numbering scheme, as well as the RPM semantics for virtual packages (all provides have versions). This is default when using the rpm or hdlist input types. -stop-extraction package When computing the dependency closure, stop at package package (i.e. do not take its dependencies into account). Specification is the same as for the -extract-cone option. -verbose Be verbose (mostly useful for debugging). -ignore-file-deps file file should countain a list of file dependencies that are assumed to be available, and thus will not generate a warning during dependency resolution if not provided by any package. Version 1.2 October 28, 2008 ceve(1)