1.修改软件源

修改/etc/apt/sources.list即可,更换软件源后应使用apt-get update命令更新软件列表。

常用软件源:阿里巴巴开源镜像站 、 清华大学开源软件镜像站

1.Linux中apt与apt-get命令的区别与解释

2.Ubuntu使用apt-get命令遇到的问题

2.安装软件

sudo apt-get install <软件包名> 软件包名一般为软件名,也可使用sudo apt-cache search <关键字> 模糊搜索。

若提示“不能理解命令行选项g来自get与其他选项的搭配”,可以尝试将apt -get 替换为 apt

3.查看apt帮助信息apt-get --help

# 删除软件及其配置文件
apt-get --purge remove <package>
# 删除没用的依赖包
apt-get autoremove <package>
# 此时dpkg的列表中有“rc”状态的软件包,可以执行如下命令做最后清理:
dpkg -l | grep ^rc | awk '{print $2}' | sudo xargs dpkg -P
apt 2.0.6 (amd64)
Usage: apt-get [options] commandapt-get [options] install|remove pkg1 [pkg2 ...]apt-get [options] source pkg1 [pkg2 ...]apt-get is a command line interface for retrieval of packages
and information about them from authenticated sources and
for installation, upgrade and removal of packages together
with their dependencies.Most used commands:update - Retrieve new lists of packagesupgrade - Perform an upgradeinstall - Install new packages (pkg is libc6 not libc6.deb)reinstall - Reinstall packages (pkg is libc6 not libc6.deb)remove - Remove packagespurge - Remove packages and config filesautoremove - Remove automatically all unused packagesdist-upgrade - Distribution upgrade, see apt-get(8)dselect-upgrade - Follow dselect selectionsbuild-dep - Configure build-dependencies for source packagessatisfy - Satisfy dependency stringsclean - Erase downloaded archive filesautoclean - Erase old downloaded archive filescheck - Verify that there are no broken dependenciessource - Download source archivesdownload - Download the binary package into the current directorychangelog - Download and display the changelog for the given packageSee apt-get(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).This APT has Super Cow Powers.

Linux软件安装及修改软件源相关推荐

  1. 如何在 Linux 上安装服务器管理软件 Cockpit

    如何在 Linux 上安装服务器管理软件 Cockpit Cockpit 是一个自由开源的服务器管理软件,它使得我们可以通过它好看的 web 前端界面轻松地管理我们的 GNU/Linux 服务器.Co ...

  2. linux版本的xmind怎么安装教程,Linux下安装脑图软件XMind的步骤

    Linux下安装脑图软件XMind的步骤 2009-12-28 22:14:35   出处:https://www.yqdown.com 1 在http://www.xmind.net/ 下载文件.下 ...

  3. linux mint 安装wps办公软件

    Linux mint安装wps办公软件 首先去网站下载最新的wps程序 http://bbs.wps.cn/forum-wpslinux-1.html 然后安装这个程序,安装完成之后,我们发现还不能启 ...

  4. linux播放mp4软件,linux(centos)安装Mplayer视频播放软件问题汇总

    linux(centos)安装Mplayer视频播放软件问题汇总 2015-02-10 12:31:00 admin 原创 3684 文章参考:http://blog.chinaunix.net/ui ...

  5. RedHat Linux 7安装CentOS 7 yum源

    RedHat Linux 7安装CentOS 7 yum源 问题描述 解决步骤 0,进入/opt目录,进入root模式,新建yum目录 1,查看自己redhat版本 2,查看redhat 7.0系统本 ...

  6. Linux软件安装管理 - CentOS (三) ---- 源码包管理

    1. 软件包管理简介 2. rpm命令管理(Redhat Package Manager) 3. yum在线安装 4. 源码包管理 4.1 源码包和RPM包的区别 4.1.1 区别 安装前:概念上的区 ...

  7. linux系统安装yum教程,Linux基本教程:Linux软件安装之Yum及源码编译安装

    一.Yum软件包管理 1.准备Yum软件仓库 1)Yum机制概述 Yum,Yellowdog Updater Modified 基于RPM包构建的软件更新机制 自动解决软件包依赖关系 所有软件包由集中 ...

  8. Linux下安装配置各种软件和服务

    1. JDK 1.1. 解压Linux版本的JDK压缩包 yum -y install glibc.i686 #安装jdk源glibc(需要联网下载源) mkdir /usr/local/src/jd ...

  9. Ubuntu软件安装与更改镜像源(超详细)

    一.软件安装 在Ubuntu系统中,使用apt-get命令安装更新软件包: sudo apt-get install package 安装软件包 sudo apt-get install packag ...

  10. Linux下安装、卸载软件/软件包管理——Yum

    Linux下软件安装 1.源码安装 2.rpm安装 注:可能存在大量的软件之间的依赖关系,安装比较麻烦,所以不推荐1 .2方式 3.yum:本身会考虑依赖关系  相当于手机里边的软件商店/应用市场 y ...

最新文章

  1. 快速提升性能的SQL语句,建议收藏
  2. 新书-JavaScript高级程序设计:第2版(预订中,估价)
  3. c语言课程设计 性别,【图片】发几个C语言课程设计源代码(恭喜自己当上技术小吧主)【东华理工大学吧】_百度贴吧...
  4. python类属性的应用 子类继承可以节约空间
  5. atitit,it人怎么样才容易事业成功?? 有以下五种性格的人容易成功
  6. mysql group b_mysql报错之5.7版本的 group by mysql不能使用group by
  7. 快读快写:读入输出优化
  8. java技术学习路线
  9. cvf命令报错 linux,linux命令大全
  10. Java内存模型是什么
  11. Ubuntu下snap挂代理下载加速方法
  12. ubuntu 18.04 两张GPU显卡,nvidia-smi只显示一张
  13. 在VMware16中安装 Win10操作系统
  14. Linux安装必须建立的三个分区
  15. 当3A射击游戏遇上Play to Earn,暴躁兔带你了解MetalCore
  16. smartbi问题_SAP BO的五大尴尬,Smartbi就是HANA用户的“菜”
  17. QoS(服务质量)指标
  18. 产品 软件验收标准参考
  19. 利用燕尾花数据集画出P-R曲线
  20. 重点来了,具有优质脂肪的坚果居然是减肥的好帮手!

热门文章

  1. C++/Qt中文显示乱码与string/wstring/wchar_t转换
  2. linux脚本打印变量的值,linux利用read命令获取变量中的值
  3. MATLAB把型线图画静水力曲线,静水力曲线计算与绘制指导书
  4. linux中定义用户账户的文件为,Linux中用户和组中认证库和解析库的文件格式以及默认参数定义文件...
  5. __cdecl , __fastcall 和__stdcall区别
  6. “会用LabVIEW,但是却没有听说TestStand,好像有点说不过去吧!”(下)
  7. 微信小程序源代码demo
  8. 第一课 GoC简介和演示
  9. python中的加减乘除符号属于什么_python中的加减乘除小知识
  10. 最详细的手机资料名词术语解释