debian系统简单介绍

您所在的位置:网站首页 Linux操作系统简介CSDN debian系统简单介绍

debian系统简单介绍

2023-11-12 03:55| 来源: 网络整理| 查看: 265

系统简介:

广义的Debian是指一个致力于创建自由操作系统的合作组织及其作品,由于Debian项目众多内核分支中以Linux宏内核为主,而且 Debian开发者 所创建的操作系统中绝大部分基础工具来自于GNU工程 ,因此 “Debian” 常指Debian GNU/Linux。 非官方内核分支还有只支持x86的Debian GNU/Hurd(Hurd微内核),只支持amd64的Dyson(OpenSolaris混合内核)等。这些非官方分支都存在一些严重的问题,没有实用性,比如Hurd微内核在技术上不成熟,而Dyson则基础功能仍不完善。 “Debian” 正式发音为 /ˈdɛ.bi.ən/ ,Debian 是国际化协作项目,官方未指定任何非英文名称。 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 使用过程中发现的一般特点: 1.Debian系统区别于centos系统:如果需要在线安装应用,需要用apt-get命令,相当于centos的yum命令。 2.Debian系统的ll命令可以查看所有文件,包括隐藏文件。ls只可以查看非隐藏文件。 3.Debian系统对汉字支持很好,不会出现centos的乱码现象。

Debian系统apt命令使用简单介绍: apt的源配置文件简介: 配置文件是/etc/apt/sources.list

一些常用的apt源:

阿里源: 打开站点 https://opsx.alibaba.com/mirror 找到debian相关内容,点开右边debian使用帮助页面 复制源地址到剪切板

debian 7.x (wheezy)

deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib deb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib deb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib

debian 8.x (jessie)

deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib

debian 9.x (stretch)

deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

163源: 打开站点 http://mirrors.163.com/.help/debian.html

以Jessie为例

deb http://mirrors.163.com/debian/ jessie main non-free contrib deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib deb-src http://mirrors.163.com/debian/ jessie main non-free contrib deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

debian 6.x (squeeze) debian 7.x (wheezy) debian 8.x (jessie) debian 9.x (stretch) 需要哪个系统的则自行替换对应版本

操作步骤 以阿里源为例子,自行替换所属源

设置源

# 切换到root权限下 cp /etc/apt/sources.list /etc/apt/sources.list.bak # 备份原有文件 # 打开文件编辑 vi /etc/apt/sources.list # 替换内容为刚才复制的内容 deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib # 保存并退出

更新操作

# 配置好之后更新软件包列表 apt-get update # 升级系统所有软件 apt-get upgrade # 升级系统版本 apt-get dist-upgrade

ps:不要同时配置多个源,同一仓库的源启用一个即可,否则容易引起混乱。

基本操作命令: 更新软件源数据 apt-get update 更新已安装软件 apt-get upgrade 更新系统版本 apt-get dist-upgrade 通过安装包或卸载包来修复依赖错误 apt-get -f install 搜索软件源数据 apt-cache search foo 解压安装软件包 apt-get install foo 重新安装软件包 apt-get --reinstall install foo 删除软件包(卸载)释放的内容 apt-get remove foo 卸载软件,同时清除该软件配置文件 apt-get --purge remove foo 删除不需要的包 apt-get autoclean 删除所有已下载的包 apt-get clean 自动安装编译一软件所需要的包 apt-get build-dep foo dpkg 功能 具体语句 显示DEB包信息 dpkg -I xx.deb 显示DEB包文件列表 dpkg -c xx.deb 安装DEB包 dpkg -i xx.deb 安装DEB包(指定根目录) dpkg --root= -i xx.deb 显示所有已安装软件 dpkg -l 显示已安装包信息 dpkg -s foo 显示已安装包文件列表 dpkg -L foo 卸载包 dpkg -r foo 卸载软件包并删除其配置文件 dpkg -P foo 重新配置已安装程序 dpkg-reconfigure foo



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3