binaries installed mult. times / no symlinks ?

2003-10-19 Thread Bjoern A. Zeeb
Hi,

I had been going through /usr/bin to see what I would need for a very
small installation and noticed that there are binaries
installed multiple times with different names of course.

My question now would be if symlinking wouldn't suffice ? From those
that I had not deleted I remember the following duplicates that most
likely are not all of those exist...

Mail - mail
Mail - mailx
less - more
awk - nawk
nvi - nview
cksum - sum
reset - tset
nvi - vi
nvi - view

-- 
Bjoern A. Zeeb  bzeeb at Zabbadoz dot NeT
56 69 73 69 74  http://www.zabbadoz.net/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binaries installed mult. times / no symlinks ?

2003-10-19 Thread Q
If you had checked the link count you would have seen that the binaries
you mentioned are actually not installed multiple times, but are hard
linked under multiple names, and therefore only take up the space of a
single instance of the file. If these binary files are located on the
same filesystem it is preferable to hardlink rather than symlink them. 
I'm not sure if you noticed, but deleting a file with a link count
greater than one will not free up any space, so deleting them is
fruitless unless to plan to delete all of the references.

If you want something really small, check out the picobsd project on the
freebsd website.

Seeya...Q

On Sun, 2003-10-19 at 18:52, Bjoern A. Zeeb wrote:

 Hi,
 
 I had been going through /usr/bin to see what I would need for a very
 small installation and noticed that there are binaries
 installed multiple times with different names of course.
 
 My question now would be if symlinking wouldn't suffice ? From those
 that I had not deleted I remember the following duplicates that most
 likely are not all of those exist...
 
   Mail - mail
   Mail - mailx
   less - more
   awk - nawk
   nvi - nview
   cksum - sum
   reset - tset
   nvi - vi
   nvi - view
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binaries installed mult. times / no symlinks ?

2003-10-19 Thread David Malone
On Sun, Oct 19, 2003 at 08:52:59AM +, Bjoern A. Zeeb wrote:
 My question now would be if symlinking wouldn't suffice ?

All of the programs you list are actually hardlinks to one another.
If you run ls -li on them, you will see that they have the same
inode number, and are consequently the same file.

   nvi - nview
   nvi - vi
   nvi - view

You can add ex and nex to this list too.

David.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binaries installed mult. times / no symlinks ?

2003-10-19 Thread Bjoern A. Zeeb
On Sun, 19 Oct 2003, David Malone wrote:

 On Sun, Oct 19, 2003 at 08:52:59AM +, Bjoern A. Zeeb wrote:
  My question now would be if symlinking wouldn't suffice ?

 All of the programs you list are actually hardlinks to one another.

*aarrrggg* should have had another look at it this morning after some
minutes of sleep.

 If you run ls -li on them, you will see that they have the same
 inode number, and are consequently the same file.

yes. of course.

I should recheck the way I had copied them into my image.
Must have used cp -p this night instead of tar -cpf - | tar -xpf - -C ...
or s.th. like this.
That's most likely the problem I hadn't seen a link count  1
because I didn't look at the original installation:

noc:~/install-20031018/usr/bin# ls -i  ex nex nvi nview vi view
47625 ex 47625 nex   47625 nvi   47625 nview   47625 vi   47625 view

but

noc:/mnt/usr/bin# ls -i  ex nex nvi nview vi view
  346 ex   246 nex 240 nvi 239 nview 114 vi 113 view


many thanks for all the answers.

-- 
Bjoern A. Zeeb  bzeeb at Zabbadoz dot NeT
56 69 73 69 74  http://www.zabbadoz.net/

tech support excuse #226: Fatal error right in front of screen
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binaries installed mult. times / no symlinks ?

2003-10-19 Thread slave-mike
Or try and figure out a way to get UPX to work on *BSD
- Original Message - 
From: Q [EMAIL PROTECTED]
To: Bjoern A. Zeeb [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, October 19, 2003 5:20 AM
Subject: Re: binaries installed mult. times / no symlinks ?


 If you had checked the link count you would have seen that the binaries
 you mentioned are actually not installed multiple times, but are hard
 linked under multiple names, and therefore only take up the space of a
 single instance of the file. If these binary files are located on the
 same filesystem it is preferable to hardlink rather than symlink them.
 I'm not sure if you noticed, but deleting a file with a link count
 greater than one will not free up any space, so deleting them is
 fruitless unless to plan to delete all of the references.

 If you want something really small, check out the picobsd project on the
 freebsd website.

 Seeya...Q

 On Sun, 2003-10-19 at 18:52, Bjoern A. Zeeb wrote:

  Hi,
 
  I had been going through /usr/bin to see what I would need for a very
  small installation and noticed that there are binaries
  installed multiple times with different names of course.
 
  My question now would be if symlinking wouldn't suffice ? From those
  that I had not deleted I remember the following duplicates that most
  likely are not all of those exist...
 
  Mail - mail
  Mail - mailx
  less - more
  awk - nawk
  nvi - nview
  cksum - sum
  reset - tset
  nvi - vi
  nvi - view
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]