# 这里以locate命令为例 sudo apt-get install mlocate
# yum安装locate sudo yum install mlocate sudo updatedb locate -h
# 包括但不限于以下update方法 sudo apt-get update sudo apt-get upgrade sudo apt update
# 修改 apt-get 源的配置文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份 sudo vim /etc/apt/sources.list #修改 sudo apt-get update #更新列表
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
Shift + I 编辑文档 Esc 退出编辑 :q! 关闭文档 :wq! 保存文档并关闭
# 依赖库的安装 sudo apt-get install python-sqlitecachec sudo apt-get install python-urlgrabber sudo apt-get install python-libxml2 sudo apt-get install python-rpm sudo apt-get install python-sqlite sudo apt-get install python-urlgrabber
yum
# apt-get 安装 mlocate sudo apt-get install mlocate
# 卸载yum sudo apt-get remove yum
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70003733/viewspace-2894797/ ,如需转载,请注明出处,否则将追究法律责任。