[Top][All Lists]

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

Re: Add symbolic link to tar file

From: Sergey Poznyakoff
Subject: Re: Add symbolic link to tar file
Date: Wed, 13 Nov 2019 07:57:41 +0200

Hi Frederick,

> I have written a small script for adding a symbolic link to a tar file.

I suppose you mean a symbolic link not existing on a file system, right?

> Internally my script does the following:
> * Create a symbolic link in "/tmp" and have it point to "/usr/lib/libdog.so"
> * Use "tar -r"  along with "--transform" to add the symbolic link to the
> tar file
> * Delete the temporary link
> Is there a better way of doing this?

I don't think so. What you did is quite reasonable.

> Should a new command line option be added to the 'tar' program so that we
> can do something like the following?:

This doesn't seem to be a very often needed functionality.  Beside obvious
implementation for packaging purposes I can't think of other possible uses.
So perhaps a special option is not needed, given that your script does
the job.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]