gpt4 book ai didi

linux - 在Linux终端上安装程序

转载 作者:太空宇宙 更新时间:2023-11-04 05:36:33 25 4
gpt4 key购买 nike

当我尝试在 ubuntu 上安装 arduino 时,arduino 网站说我可以通过输入这些命令通过终端安装它

sudo apt-get update && sudo apt-get install arduino arduino-core

一般来说,在 Linux Debian 中,我们可以使用终端输入来安装程序

sudo apt-get install ${program-name}

问题是我不去程序安装指南复制代码,怎么知道需要安装的${program-name}?

最佳答案

The apt-cache command line tool is used for searching apt software package cache. In simple words, this tool is used to search software packages, collects information of packages and also used to search for what available packages are ready for installation on Debian or Ubuntu based systems.

要在安装前查找软件包名称及其描述,请使用“search”标志。将“search”与 apt-cache 一起使用将显示带有简短描述的匹配包列表。假设您想查找包“vsftpd”的描述,那么命令就是。

Syntax:

apt-cache search SearchTerm
$ apt-cache search vsftpd

The possible output would be:

vsftpd - lightweight, efficient FTP server written for security
ccze - A robust, modular log coloriser
ftpd - File Transfer Protocol (FTP) server
yasat - simple stupid audit tool

To find and list down all the packages starting with ‘vsftpd‘, you could use the following command.

$ apt-cache pkgnames vsftpd

You may also want to run the results through a more, or even a grep. For instance:

apt-cache search firefox | grep plugin

关于linux - 在Linux终端上安装程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39425127/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com