1.1.1 Debian关联

典型的路径

  • 镜像源文件:/etc/apt/sources.list
  • 安装包缓存路径:/var/cache/apt/archives
   root@312debian12x32d2:~# cat /etc/apt/sources.list
   #Repository main
   deb https://deb.debian.org/debian bookworm main non-free contrib

   #Repository updates
   deb https://deb.debian.org/debian bookworm-updates main non-free contrib

   #Repository backports
   deb https://deb.debian.org/debian bookworm-backports main non-free contrib

   #Repository security
   deb https://security.debian.org bookworm-security main non-free contrib

   #Repository wine
   # deb http://nas-server/dev/mirrors/debian bookworm main

   root@312debian12x32d2:~#

下载所有已安装的包

   apt-get install --reinstall --download-only  $(dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}')
   apt-get --download-only --assume-yes reinstall $(dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}')

dpkg命令查看已安装包

   root@312debian12x32d2:~# dpkg -l | grep grub
   ii  grub-common                          2.06-13+deb12u2                     i386         GRand Unified Bootloader (common files)
   rc  grub-efi-amd64                       2.06-13+deb12u2                     i386         GRand Unified Bootloader, version 2 (EFI-AMD64 version)
   ii  grub-efi-amd64-bin                   2.06-13+deb12u2                     i386         GRand Unified Bootloader, version 2 (EFI-AMD64 modules)
   ii  grub-efi-ia32-bin                    2.06-13+deb12u2                     i386         GRand Unified Bootloader, version 2 (EFI-IA32 modules)
   ii  grub-efi-ia32-signed                 1+2.06+13+deb12u2                   i386         GRand Unified Bootloader, version 2 (i386 UEFI signed by Debian)
   ii  grub-pc                              2.06-13+deb12u2                     i386         GRand Unified Bootloader, version 2 (PC/BIOS version)
   ii  grub-pc-bin                          2.06-13+deb12u2                     i386         GRand Unified Bootloader, version 2 (PC/BIOS modules)
   ii  grub2-common                         2.06-13+deb12u2                     i386         GRand Unified Bootloader (common files for version 2)
   root@312debian12x32d2:~#

链接

results matching ""

    No results matching ""