24
3
I am making an RPM in which everything is contained in the .spec file (don't ask :-). rpmbuild requires a "Source" file, so I was trying to create an empty tar file. However, if I don't give any filenames, tar complains:
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
How do I create a truly empty tar file?
its been answered before here: http://superuser.com/questions/133186/forcing-tar-to-create-an-empty-archive
– Rhyuk – 2012-07-13T19:07:46.5873Actually, @Rhuyuk, it hasn't. That post is someone who forgot to list a filename, and the answer helped them realize they needed to pass another argument, resulting in a non-empty archive. This is why I changed the title of that question, and created this question, which DOES answer what the title of that question was asking. – Sean Reifschneider – 2012-07-13T19:13:40.603