查询vi命令对应的软件包
Hey there! Let me walk you through figuring out which package provides the /bin/vi command.
In Debian, Ubuntu, and their derivative distros, /bin/vi is almost always supplied by the vim-tiny package. If your earlier dpkg -S check didn't turn up results, there's a good chance /bin/vi is a symbolic link to another executable. Let's verify that first:
ls -l /bin/vi
You'll probably see something like /bin/vi -> /usr/bin/vim.tiny. Then run this to confirm the package:
dpkg -S /usr/bin/vim.tiny
That should point you straight to vim-tiny.
On minimal systems that use BusyBox (like some lightweight server setups), /bin/vi might be part of the BusyBox suite. In that case, the package you're looking for is busybox. You can check with:
dpkg -S /bin/busybox
If vi is linked to BusyBox, this command will confirm it's part of that package.
备注:内容来源于stack exchange,提问作者afsrgdtfhygjhjgfdse

