News for hackers. Stuff that matters.
Re:Why not tar? Limitations of the tar file format. by hernan7 on Monday September 06, 2010 @03:05AM (#1666129)
As long as they don't make me use cpio, I'm fine.
Re:Why not tar? Limitations of the tar file format. by joey_bananas on Monday September 06, 2010 @08:28AM (#1666512)
we should go back to that embedded shellscript thingy that was common back in the day. Its name escapes me.
Re:Why not tar? Limitations of the tar file format. by gaius on Monday September 06, 2010 @08:39AM (#1666526)
Re:Why not tar? Limitations of the tar file format. by rwmj on Monday September 06, 2010 @05:16PM (#1667436)
I was just imagining if we'd all settled on using shar files how big the virus/worm problem would be on Linux today ...

... Then I thought that effectively that's what Windows does (using *.exe for installers). No wonder they've got a problem.

Re:Why not tar? Limitations of the tar file format. by _delirium on Monday September 06, 2010 @11:54PM (#1667981)
Well, the existing Linux package managers aren't really safer as far as the archive formats go; for example, .debs can run arbitrary shell scripts during installation. The main thing that seems to add to the safety is the social practice of grabbing debs via trusted repositories using apt-get/aptitude/synaptic, rather than manually downloading them from random sites and doing dpkg -i. But if there is malware, it's even worse, because at least these shar installers are usually installed as non-root, while installing a .deb needs root.
Re:Why not tar? Limitations of the tar file format. by _delirium on Monday September 06, 2010 @02:12PM (#1667101)
Commercial games with Linux versions often still use this (or a variant). Not too sure why; perhaps because it's the closest Linux equivalent to the self-extracting installer archives they use on Windows?
Re:Why not tar? Limitations of the tar file format. by nitrogen on Monday September 06, 2010 @06:42PM (#1667561)
When dealing with users who may not be completely familiar with package management, and creating a single cross-platform package, it can be very helpful to prevent the data and its installer from being separated. It's a very simple way to bundle some logic with an archive as well, as the script can be modified after it is generated.