Debian11配置静态IPV6地址与apt包管理工具使用 - 开发说
当前位置: 主页 » VPS优惠 » Debian11配置静态IPV6地址与apt包管理工具使用

Debian11配置静态IPV6地址与apt包管理工具使用

      2021年10月04日   阅读 1,736 次     0 评论   Tags:

debian11出来也很久了,就买个一只只有IPV6得0.49欧元/月的小鸡,装了个debian11体验一下

Debian和Redhat系得包管理工具不一样,网卡设置也不一样,Debian系包管理工具为apt对应Redhat系的yum,Debian系的dpkg对应Redhat系的rpm



root@debian11:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens18
auto ens18
iface ens18 inet dhcp

#增加以下行,然后重启网络/etc/init.d/networking restart即可
iface ens18 inet6 static
address 2a0d:2146:2404::1919
netmask 64
gateway 2a0d:2146:2404::1

Debian系apt包管理工具使用


查看apt帮助
root@debian11:~# apt --help
apt 2.2.4 (amd64)
Usage: apt [options] command

apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.

Most used commands:
  list - list packages based on package names   #列出包示例:apt list nginx 或者也可以grep一下:apt list nginx|grep nginx
  search - search in package descriptions       #搜索包示例:apt search nginx
  show - show package details                   #显示包详情示例:apt show nginx 
  install - install packages                    #安装包示例:apt install nginx
  reinstall - reinstall packages                #重装包示例:apt reinstall nginx
  remove - remove packages                      #删除包示例:apt remove nginx
  autoremove - Remove automatically all unused packages            #删除无用得包示例:apt autoremove
  update - update list of available packages    #列出可更新得包,不更新。仅列出:apt  update 
  upgrade - upgrade the system by installing/upgrading packages    #更新包:apt upgrade
  full-upgrade - upgrade the system by removing/installing/upgrading packages   
  edit-sources - edit the source information file
  satisfy - satisfy dependency strings

  • 版权声明:本文版权归开发说和原作者所有,未经许可不得转载。文章部分来源于网络仅代表作者看法,如有不同观点,欢迎进行交流。除非注明,文章均由 开发说 整理发布,欢迎转载,转载请带版权。

  • 来源:开发说 ( https://www.kaifashuo.com/ ),提供主机优惠信息深度测评和服务器运维编程技术。
  • 链接:https://www.kaifashuo.com/2312.html
  • 评论(0

    1. 还没有任何评论,你来说两句吧

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注