Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/bin/fdisk does not belong to any package?!?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jmbreuer
n00b
n00b


Joined: 07 Sep 2011
Posts: 19

PostPosted: Tue Sep 10, 2024 11:08 am    Post subject: /usr/bin/fdisk does not belong to any package?!? Reply with quote

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.

Code:
eix gdisk
- nothing.

Maybe it's a gpt USE flag of fdisk, or such?
Code:
equery u fdisk
- 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? 8O


(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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4858
Location: Bavaria

PostPosted: Tue Sep 10, 2024 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1633
Location: Germany

PostPosted: Tue Sep 10, 2024 12:45 pm    Post subject: Reply with quote

could be a merged-usr "problem".

There is also another alternative to find where a file/command comes from: https://wiki.gentoo.org/wiki/Pfl

Usable also without installation: https://www.portagefilelist.de/?fs=%2Fsbin%2Ffdisk#panchor or https://www.portagefilelist.de/?fs=fdisk#panchor
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3380
Location: Canada

PostPosted: Tue Sep 10, 2024 3:38 pm    Post subject: Reply with quote

fdisk normally belongs to

sys-apps/util-linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum