I look for a way to change absolute symbolic links to relative ones. Searching revealed the tool symlinks, which could do what I want, but I cannot find it in the Suse repositories.
**
What tool do Suse users use for the maintenance of existing symbolic links?**
I am using EXT4, Suse 11.2. The install/boot sub-forum appeared the most appropriate to me, due to its tag “filesystems”. I apologise if this does not fit here.
Detailed example:
I automatically created the following symbolic links in my picture album directory, which is simply a selection of nicer photos stored in elsewhere:
/home/sturtle/Privat/Bilder/Alben/2010> ll
pic27.jpg -> /home/turtle/Privat/Bilder/Urlaub/Schottland/pic27.jpg
pic76.jpg -> /home/turtle/Privat/Bilder/Urlaub/Deutschland/pic76.jpg
Since I share the family photos with others, /home/turtle/Privat/Bilder is itself a symbolic link to /home/multimedia/Bilder. So in reality the pictures exist at these absolute paths:
/home/multimedia/Bilder/Urlaub/Schottland/pic27.jpg
/home/multimedia/Bilder/Urlaub/Deutschland/pic76.jpg
The problem now is that others cannot use these album collections, since the absolute symbolic links into my home directory do not work for them. Even worse, I do not even have a home directory at some of the machines where a mirror copy of /multimedia exists.
So I would rather have the following relative symbolic links, which would work everywhere:
/home/multimedia/Bilder/Alben/2010> ll
pic27.jpg -> ../../Urlaub/Schottland/pic27.jpg
pic76.jpg -> ../../Urlaub/Deutschland/pic76.jpg
Now we are talking about a few hundred symbolic links in total to be changed, so an automatic tool would be necessary.
BTW, my pictures are organised with Kphotoalbum, and I create the symlinks by drag-and-drop from Kphotoalbum to Dolphin. Yes, this is a workaround, since I believe that Kphotoalbum cannot export its database to IPTC-tags nor Digikam (which could then export to IPTC) at the moment. So a tool which could turn part of the path of a symbolic link into IPTC keywords would also resolve the problem, but I guess dealing with symbolic links is easier or more common.