View previous topic :: View next topic |
Author |
Message |
jmbreuer n00b
Joined: 07 Sep 2011 Posts: 21
|
Posted: Tue Sep 10, 2024 11:08 am Post subject: /usr/bin/fdisk does not belong to any package?!? |
|
|
As part of some (external) disk wrangling, I was using fdisk/sfdisk/gdisk/parted a lot.
The gdisk command was missing on a system upgraded from an older install, so I tried to see what package I would need.
- nothing.
Maybe it's a gpt USE flag of fdisk, or such?
- no such package.
OK where is my /usr/bin/fdisk coming from?
Code: | equery b /usr/bin/fdisk | - no matching package.
My /usr/bin/fdisk is fairly recent (Sep 7, would match with last emerge @world etc).
How come it's (still) there, and works, but not owned by any package?
(I've since found out that gdisk is part of sys-apps/gptfdisk, but that doesn't solve the mystery of the orphaned /usr/bin/fdisk) |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5118 Location: Bavaria
|
Posted: Tue Sep 10, 2024 11:47 am Post subject: |
|
|
I get:
Code: | $ equery b fdisk
* Searching for fdisk ...
sys-apps/util-linux-2.39.4-r1 (/sbin/fdisk)
sys-apps/util-linux-2.39.4-r1 (/usr/share/bash-completion/completions/fdisk)
$ equery b gdisk
* Searching for gdisk ...
sys-apps/gptfdisk-1.0.9-r3 (/usr/sbin/gdisk) |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1743 Location: Germany
|
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3426 Location: Canada
|
Posted: Tue Sep 10, 2024 3:38 pm Post subject: |
|
|
fdisk normally belongs to
sys-apps/util-linux |
|
Back to top |
|
|
jmbreuer n00b
Joined: 07 Sep 2011 Posts: 21
|
Posted: Tue Oct 01, 2024 5:09 pm Post subject: |
|
|
Thank you all!
Hmmm, so sys-apps/util-linux does provide /sbin/fdisk (et al), and:
Code: | $ ls -l /usr/bin/fdisk /sbin/fdisk
-rwxr-xr-x 1 root root 166032 Aug 2 18:29 /sbin/fdisk*
-rwxr-xr-x 1 root root 166032 Aug 2 18:29 /usr/bin/fdisk* |
(cmp also says they're the same).
... why is there another exact - and recent, I certainly didn't do any merge-usr shenanigans since August - copy of /sbin/fdisk in /usr/bin/fdisk...? Aah, because /sbin now is a symlink to /usr/bin! ...
Should util-linux really be installing there, then? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22686
|
Posted: Tue Oct 01, 2024 6:04 pm Post subject: |
|
|
If /sbin is a symlink to /usr/bin, then you are on a merged-usr profile. What is the output of eselect profile show ; namei -l /{,usr/}{,s}bin?
What do you think util-linux is doing wrong here? |
|
Back to top |
|
|
|