Blog
Paste
Ubuntu
Wiki
Linux
Forum
搜索
页面
讨论
源码
历史
简体
繁體
导航
首页
社区
当前事件
最近更改
随机页面
帮助
工具箱
链入页面
链出更改
特殊页面
个人工具
登录
出自Ubuntu中文
对
UbuntuSkills
的源码
根据以下的原因,您并无权限去做编辑这个页面:
该页面已被锁定以防止编辑。
您可以查看并复制此页面的源码:
== 安装升级 == === 查看软件xxx安装内容 === dpkg -L xxx === 查找软件库中的软件 === apt-cache search 正则表达式 或 aptitude search 软件包 === 显示系统安装包的统计信息 === apt-cache stats === 显示系统全部可用包的名称 === apt-cache pkgnames === 显示包的信息 === apt-cache show k3b === 查找文件属于哪个包 === apt-file search filename === 查看已经安装了哪些包 === dpkg -l === 查询软件xxx依赖哪些包 === apt-cache depends xxx === 查询软件xxx被哪些包依赖 === apt-cache rdepends xxx === 增加一个光盘源 === sudo apt-cdrom add === 系统升级 === sudo apt-get update (这一步更新包列表) sudo apt-get dist-upgrade (这一步安装所有可用更新) 或者 sudo apt-get upgrade (这一步安装应用程序更新,不安装新内核等) === 清除所有已删除包的残馀配置文件 === dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 如果报如下错误,证明你的系统中没有残留配置文件了,无须担心。 ---- dpkg: --purge needs at least one package name argument Type dpkg --help for help about installing and deinstalling packages [*];<br> Use `dselect' or `aptitude' for user-friendly package management;<br> Type dpkg -Dhelp for a list of dpkg debug flag values;<br> Type dpkg --force-help for a list of forcing options;<br> Type dpkg-deb --help for help about manipulating *.deb files;<br> Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].<br> Options marked [*] produce a lot of output - pipe it through `less' or `more' ! <br> ---- === 编译时缺少h文件的自动处理 === sudo auto-apt run ./configure === 查看安装软件时下载包的临时存放目录 === ls /var/cache/apt/archives === 备份当前系统安装的所有包的列表 === dpkg --get-selections | grep -v deinstall > ~/somefile === 从上面备份的安装包的列表文件恢复所有包 === dpkg --set-selections < ~/somefile sudo dselect === 清理旧版本的软件缓存 === sudo apt-get autoclean === 清理所有软件缓存 === sudo apt-get clean === 删除系统不再使用的孤立软件 === sudo apt-get autoremove === 查看包在服务器上面的地址 === apt-get -qq --print-uris install ssh | cut -d\' -f2 === 彻底删除Gnome === apt-get --purge remove liborbit2 === 彻底删除KDE === apt-get --purge remove libqt3-mt libqtcore4 === 一键安装 LAMP 服务 === sudo tasksel install lamp-server === 删除旧内核 === sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\) === 导入ppa源的key值 === #W: GPG签名验证错误: http://ppa.launchpad.net jaunty Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 5126890CDCC7AFE0 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5126890CDCC7AFE0 #5126890CDCC7AFE0替换为你需要导入的Key值
返回到
UbuntuSkills
。