How to create an archive containing links and the linked files. I have some shared libraries of which I want to create an archive. This is what I tried
mkdir dest #abc.so is a link file which points to abc.so.1 #abc.so.1 is a link file which points to abc.so.1.1 #abc.so.1.1 is the actual file cp /usr/local/lib/abc.so* dest/ tar -czvf dest.tar.gz -C dest/ . But the resulting dest.tar.gz file lists links and linked files with same size and no l file type for links in the output of tar -tvf dest.tar.gz.