ubuntu add/remove software by command

本文详细介绍在Ubuntu系统中如何使用命令行工具安装、卸载、更新软件及管理软件包。包括使用apt-get和dpkg命令的具体操作方法,适用于Linux初学者和技术人员。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Ubuntu软件安装与删除相关命令
安装软件
命令: apt-get install softname1 softname2 softname3……
卸载软件
命令: apt-get remove softname1 softname2 softname3……
卸载并清除配置
命令: apt-get remove --purge softname1
更新软件信息数据库
命令: apt-get update
进行系统升级
命令: apt-get upgrade
搜索软件包
命令: apt-cache search softname1 softname2 softname3……
Deb软件包相关安装与卸载

安装deb软件包
命令: dpkg -i xxx.deb
删除软件包
命令:   dpkg -r xxx.deb
连同配置文件一起删除
命令: dpkg -r --purge xxx.deb
查看软件包信息
命令: dpkg -info xxx.deb
查看文件拷贝详情
命令: dpkg -L xxx.deb
查看系统中已安装软件包信息
命令: dpkg -l
重新配置软件包
命令:   dpkg-reconfigure xxx
### Ubuntu 24.04 LTS Minimal Installation Guide For users seeking a streamlined installation of Ubuntu, opting for the minimal install option during setup can significantly reduce unnecessary packages and bloatware from being installed on the system[^1]. This approach ensures that only essential components are included, providing an environment tailored specifically to user needs. #### Preparing for Minimal Install Before initiating the installation process: - Ensure access to stable internet connectivity. - Download the standard ISO image rather than any specialized versions since the minimal selection is made within the installer itself. #### Initiating the Installer with Minimal Option Upon booting into the live USB or CD containing the Ubuntu installation media: - Choose your language when prompted. - At the first screen after selecting the language, look for advanced options by pressing F6 (or Esc depending upon version), which allows specifying additional parameters before proceeding further. - Add `minimize` at the end of the kernel line but ensure not to remove existing entries already present there. Alternatively, - After choosing Try or Install Ubuntu without modifying the bootloader command directly, proceed until reaching the software selection page where one may choose “Minimal installation”. This choice will exclude pre-installed applications like office suites, music players, etc., leaving behind just core utilities required for basic operation along with updates and third-party drivers if needed. ```bash sudo apt-get update && sudo apt-get upgrade -y ``` After completing these steps successfully, reboot once all changes have been applied properly according to prompts shown throughout this phase.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值