How to script automate unTAR of packages

Bruce Dubbs bruce.dubbs at gmail.com
Mon Dec 28 17:50:35 PST 2009


Mikie wrote:
> Hello list,
> 
> I have made a script file at:
> 
> http://www.mikienet.com/linux/LFS-6.5-untar-list
> 
> ... to unTAR my packages so I don't have to do it manually.
> 
> When I run it I get:
> 
> tar: /mnt/lfs/sources/zlib-1.2.3.tar.bz2\r: Cannot open: No such file or

The \r says it found return character in the file.  Did you edit it in a 
Windows text editor?

Edit the file in vim and do

  :%s/\r//
  :wq

   -- Bruce



More information about the lfs-support mailing list