debian 8.x apt-get 以cdrom为源安装包

debian 8.2 jessie 以光盘为源安装软件

1、生成空的/etc/apt/sources.list

# mv /etc/apt/sources.list /tmp/sources.list
# touch /etc/apt/sources.list

2、添加 cdrom源

# apt-cdrom add

3、查看 /etc/apt/sources.list

# cat /etc/apt/sources.list 
deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main

4、安装

# apt-get install xxx
posted @ 2018-01-16 19:58  peiybpeiyb  阅读(924)  评论(0编辑  收藏  举报