Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Upgrade of custom package removes symlink

 
   Linux (Home) -> Partner Relationship Management RSS
Next:  'Strange' tags in a .spec file.  
Author Message
linux.redhat.rpm

External


Since: May 18, 2006
Posts: 1



(Msg. 1) Posted: Thu May 18, 2006 9:24 am
Post subject: Upgrade of custom package removes symlink
Archived from groups: linux>redhat>rpm (more info?)

Here's my predicament. I am certain there is a workaround in the RPM
package creation process.

I am responsible for creating RPM packages for a proprietary product
that does not support RPM. I performed a standard install of the
software as per their instructions. It requires user-interaction but
installs to a single directory.
However, the final install creates a symlink from the target install
directory, i.e.
ln -s /usr/local/product /product.
However, prior to my arrival here, the previous release had as part of
its SPEC file the following section in %postun.
rm -f /product
Now, when I use the up2date option, version 6.5 is downloaded and
installed and the symlink created. But then up2date uninstalls version
5.5 and removes the /product symlink. This symlink is required in order
for said product to run. Up2date is what my company uses for updating
RPMs throughout the business.

Any ideas on how I can retain the /product symlink to
/usr/local/product when using the up2date option?
Just wondering if there is any other option I can add to the
product.spec file that would help retain this link even after upgrade.
I have tested several different options including forcing the creation
of the symlink in the %post section, and verifying a symlink exists in
the %pre and %install sections.
I have gone to the vendor and they were no help and said they would not
support any product specific packages.
Thanks.
KJ
Back to top
Login to vote
J.O. Aho

External


Since: Sep 03, 2006
Posts: 618



(Msg. 2) Posted: Thu May 18, 2006 7:18 pm
Post subject: Re: Upgrade of custom package removes symlink [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

linux.redhat.rpm wrote:

> Any ideas on how I can retain the /product symlink to
> /usr/local/product when using the up2date option?

I think you would need to use SELinux (Kernel that uses the patches for
increased security from NSA) and deny root from modify /product.


> Just wondering if there is any other option I can add to the
> product.spec file that would help retain this link even after upgrade.
> I have tested several different options including forcing the creation
> of the symlink in the %post section, and verifying a symlink exists in
> the %pre and %install sections.
> I have gone to the vendor and they were no help and said they would not
> support any product specific packages.

The only other option I can think of, would be setup a private up2date server,
where you fetch the packages needed, but the package in question you only
fetch the source-rpm, you then have a script that will rebuild the package
after you patched the spec file and remove the line "rm -f /product".

Then all the company computers can update against the private server, this way
you get around the problem, but you will have the work of creating the script
that will automatically make the new rpm without the removal of the symlink.


There is the option --noscripts for rpm, but this can cause other problems
(see the man page: man rpm), not sure if up2date allows you to set rpm options
for specific packages.


//Aho
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Package already exists??? - Hi All, How do I fix this error? -T rpmbuild --rebuild wine-0.9.18-2.src.rpm Installing wine-0.9.18-2.src.rpm error: Package already exists: %package debuginfo

how to package 2 component in the same RPM - I have a requirement of creating an rpm package which will contain 2 components together. For e.g. the package will first install the TOMCAT and then my actual component. Any idea?

which package contain Sendmail in Redhat 3.0 enterprise - which package contain Sendmail in Redhat 3.0 enterprise????

Control attribute of directories not explicitly included i.. - Hi When installing rpm it create Directories not explicitly included in package ( happens when the file installed on directory path which doesn't exists ) Is there a way I can control of the permissions, group and owner of these directories without..

Please help me to remove/Update the Openssl default RPM pa.. - Please help me to remove the RPM Openssl default package with Linux 4 Red Hat Enterprise Server. [root@nethsm logs]# rpm -qa openssl openssl-0.9.7a-43.10 [root@nethsm logs]# rpm -e openssl error: Failed dependencies: libcrypto.so.4 is needed by....
       Linux (Home) -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact