Re: managing symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Trainor wrote:
> I was curious as to how I am supposed to create symlinks that are for
> this package, upon installation.

Create them normally in the %install section.  List them normally in
the %files section.

> When I list the links in %files and they go through the install routine,
> what I end up with is copies of the files that should have been
> symlink'd - not the symlinks themselves.

That is not the behavior that I am seeing here.  Can you show your
spec file?  I do this all of the time and it works for me.

> I am creating symlinks manually from within %post.  This is the only
> solution which I've found.

You should not need to do that.

> Are there any special precautions which I need to take when creating
> symlinks, and creating them properly, so that they are removed when I
> uninstall an RPM?

The only problem I have seen is that a dangling symlink won't be
expanded as a file glob.  In that case it is best to list it
explicitly.  But I usually touch the target in the buildroot so that
it no longer dangles at the time of glob expansion.

Bob


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux