Re: RH rpms, and installing using hardlinks vs symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/06/2018 06:34 AM, Robert P. J. Day wrote:

   i'm curious about RH packaging policy that dictates that some
command variants are packaged for fedora to install with symlinks
and others with hardlinks.

   trivial example in /usr/bin on my fedora 27 system:

   -rwsr-xr-x.   1 root root        52984 Aug  2  2017 at
   lrwxrwxrwx.   1 root root            2 Aug  2  2017 atq -> at
   lrwxrwxrwx.   1 root root            2 Aug  2  2017 atrm -> at

so even though all of those "commands" are in the very same directory,
atq and atrm are supported via symlinks, not hardlinks.

   OTOH, consider the "git" command, also in /usr/bin:

   -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git

as you can see, there are 116 hardlinks to that executable, pretty
much all of them in /usr/libexec/git-core:

   -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git
   -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-add
   -rwxr-xr-x.   1 root root   41441 Feb 16 15:03 git-add--interactive
   -rwxr-xr-x.   3 root root 2273360 Feb 16 15:03 git-am
   -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-annotate
   -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-apply
   -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-archive
   ... big snip ...

is there a reason that "at" uses symlinks, while "git" installs with
hardlinks? one would imagine that it would be the other way around --
given that the "at" variations are all in the same directory,
hardlinks would seem to be the better choice since there is no
possibility of crossing filesystem boundaries.

In the case of "git" there's the matter of using 1 inode vs. 116 inodes.

--
Bob Nichols     "NOSPAM" is really part of my email address.
                Do NOT delete it.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux