如果对于指定的程序包或可执行文件路径有如下输出,则表示已安装了,否则没有。 # whereis nano nano: /bin/nano /usr/share/nano /usr/share/man/man1/nano.1.gz /usr/share/info/nano.info.gz 方法七、使用 locate 命令 locate命令比find命令快,因为其在updatedb数据库中搜索,而find命令在实际系统中进行搜索。
方法六、使用 whereis 命令 whereis命令用于针对指定命令搜索对应的程序二进制文件、源码文件以及帮助文件等。 # whereis nano nano: /bin/nano /usr/share/nano /usr/share/man/man1/nano.1.gz /usr/share/info/nano.info.gz 方法七、使用 locate 命令 locate命令比find命令快,因为其在updatedb数据库中搜索,...
Once you use the apt-get utility to install a package, sometimes it seems to disappear into nowhere. You know it's installed, you just have no idea where. If you know the name of the executable, you can use thewhich commandto find the location of the binary, but that doesn't give ...
If the nano program is installed on the system then the following output will appear. The use of –search option is shown in the following command where the package name of cp command is searched. dpkg-query --search '/bin/cp' So, you can find out the package name of any installed pr...
Ubuntu is the modern, open source operating system on Linux for the enterprise server, desktop, cloud, and IoT.
If you installed Docker using the convenience script, you should upgrade Docker using your package manager directly. There's no advantage to re-running the convenience script. Re-running it can cause issues if it attempts to re-install repositories which already exist on the host machine. ...
To show you how this works, we will give a quick example where we check the status of any package containing the wordzip. dpkg -l *zip*Copy By using the wildcards on either side of the word “zip“, the list command will find every package containing that word. ...
Where can I find more details about how to use Ubuntu Pro? Ourdocumentationsite is continuously updated with information on how to use the Ubuntu Pro client. For a quick getting started guide, follow ourtutorial. What can I do if I have more questions?
2. Fixing Ubuntu's "Unable to Locate Package" Error 3. How to fix unable to locate package git? 4. How do I find the location of a package in Linux? 5. Final Words 6. FAQ If you're a Linux user, especially one who prefers Ubuntu Linux , you may have encountered the frustrating...
You want to install some hot new program on Debian or Ubuntu. You find the package and use apt to install it. But when you try to run it on the command line, you get an error message from the shell saying, “Command not found.” Here’s how to find out where apt installed it. ...