sharkdp / fd

A simple, fast and user-friendly alternative to 'find'
Apache License 2.0
34.29k stars 816 forks source link

debian package installs fd under the name fd, not fdfind #1592

Closed diplodocuslongus closed 4 months ago

diplodocuslongus commented 4 months ago

fd version 10.1.0, ubuntu 22.04

Just installed fd from the latest .deb release packages, and it installs under the name fd, not fdfind. It's not really an issue but a note about this could be added to the readme, under the ubuntu / debian sections, and/or actually rename fd to fdind in the .deb package so there is indeed no conflict between names when a user wants to install fdclone (or have it already installed).

(Note: On my system, fdclone wasn't installed, so no command with the name fd existed. )

Before installation

$ fd
Command 'fd' not found, but can be installed with:
sudo apt install fdclone
$ fdfind
Command 'fdfind' not found, but can be installed with:
sudo apt install fd-find

After

$ sudo dpkg -i fd_10.1.0_amd64.deb
$ fdfind
Command 'fdfind' not found, but can be installed with:
sudo apt install fd-find
$ which fd
/usr/bin/fd
$ fd --version 
fd 10.1.0

As a test to see if that would cause conflicts with fdclone, I tried to installed fdclone as well, but this failed (name conflict).

$ sudo apt install fdclone
dpkg: error processing archive /var/cache/apt/archives/fdclone_3.01j-1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/fd', which is also in package fd 10.0.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/fdclone_3.01j-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)