![如何下载 .deb 包?](https://linux22.com/image/1134159/%E5%A6%82%E4%BD%95%E4%B8%8B%E8%BD%BD%20.deb%20%E5%8C%85%EF%BC%9F.png)
此服务器有一个我想下载的 .deb 软件包。问题是,它只允许我从软件包中一次下载一个文件。我怎样才能只下载要安装的 .deb 文件?
答案1
答案2
deb文件已被压缩,我下载并解压了最大的存档如下:
wget http://downloadarchive.documentfoundation.org/libreoffice/old/3.5.7.2/deb/x86_64/LibO_3.5.7rc2_Linux_x86-64_install-deb_en-US.tar.gz
tar xvf LibO_3.5.7rc2_Linux_x86-64_install-deb_en-US.tar.gz
此提取将创建一个目录结构:
LibO_3.5.7rc2_Linux_x86-64_install-deb_en-US/DEBS
并且所有 deb 包都位于这个“DEBS”文件夹中:
andrew@corinth:~/LibO_3.5.7rc2_Linux_x86-64_install-deb_en-US/DEBS$ ls
desktop-integration
libobasis3.5-base_3.5.7-2_amd64.deb
libobasis3.5-binfilter_3.5.7-2_amd64.deb
libobasis3.5-calc_3.5.7-2_amd64.deb
libobasis3.5-core01_3.5.7-2_amd64.deb
libobasis3.5-core02_3.5.7-2_amd64.deb
libobasis3.5-core03_3.5.7-2_amd64.deb
libobasis3.5-core04_3.5.7-2_amd64.deb
libobasis3.5-core05_3.5.7-2_amd64.deb
libobasis3.5-core06_3.5.7-2_amd64.deb
libobasis3.5-core07_3.5.7-2_amd64.deb
libobasis3.5-draw_3.5.7-2_amd64.deb
libobasis3.5-en-us_3.5.7-2_amd64.deb
libobasis3.5-en-us-base_3.5.7-2_amd64.deb
libobasis3.5-en-us-calc_3.5.7-2_amd64.deb
libobasis3.5-en-us-math_3.5.7-2_amd64.deb
libobasis3.5-en-us-res_3.5.7-2_amd64.deb
libobasis3.5-en-us-writer_3.5.7-2_amd64.deb
libobasis3.5-extension-beanshell-script-provider_3.5.7-2_amd64.deb
libobasis3.5-extension-javascript-script-provider_3.5.7-2_amd64.deb
libobasis3.5-extension-mediawiki-publisher_3.5.7-2_amd64.deb
libobasis3.5-extension-nlpsolver_3.5.7-2_amd64.deb
libobasis3.5-extension-pdf-import_3.5.7-2_amd64.deb
libobasis3.5-extension-presentation-minimizer_3.5.7-2_amd64.deb
libobasis3.5-extension-presenter-screen_3.5.7-2_amd64.deb
libobasis3.5-extension-python-script-provider_3.5.7-2_amd64.deb
libobasis3.5-extension-report-builder_3.5.7-2_amd64.deb
libobasis3.5-gnome-integration_3.5.7-2_amd64.deb
libobasis3.5-graphicfilter_3.5.7-2_amd64.deb
libobasis3.5-images_3.5.7-2_amd64.deb
libobasis3.5-impress_3.5.7-2_amd64.deb
libobasis3.5-javafilter_3.5.7-2_amd64.deb
libobasis3.5-kde-integration_3.5.7-2_amd64.deb
libobasis3.5-math_3.5.7-2_amd64.deb
libobasis3.5-ogltrans_3.5.7-2_amd64.deb
libobasis3.5-onlineupdate_3.5.7-2_amd64.deb
libobasis3.5-ooofonts_3.5.7-2_amd64.deb
libobasis3.5-ooolinguistic_3.5.7-2_amd64.deb
libobasis3.5-postgresql-sdbc_3.5.7-2_amd64.deb
libobasis3.5-pyuno_3.5.7-2_amd64.deb
libobasis3.5-writer_3.5.7-2_amd64.deb
libobasis3.5-xsltfilter_3.5.7-2_amd64.deb
libreoffice3.5_3.5.7-2_amd64.deb
libreoffice3.5-base_3.5.7-2_amd64.deb
libreoffice3.5-calc_3.5.7-2_amd64.deb
libreoffice3.5-dict-en_3.5.7-2_amd64.deb
libreoffice3.5-dict-es_3.5.7-2_amd64.deb
libreoffice3.5-dict-fr_3.5.7-2_amd64.deb
libreoffice3.5-draw_3.5.7-2_amd64.deb
libreoffice3.5-en-us_3.5.7-2_amd64.deb
libreoffice3.5-impress_3.5.7-2_amd64.deb
libreoffice3.5-math_3.5.7-2_amd64.deb
libreoffice3.5-stdlibs_3.5.7-2_amd64.deb
libreoffice3.5-ure_3.5.7-2_amd64.deb
libreoffice3.5-writer_3.5.7-2_amd64.deb
andrew@corinth:~/LibO_3.5.7rc2_Linux_x86-64_install-deb_en-US/DEBS$
然后如果你愿意你可以安装全部在 DEBS 目录中运行以下命令:
sudo dpkg -i *.deb
安装其中任何一个都可能有问题,具体取决于:
- 你正在使用哪个版本的 Ubuntu
- 您要安装哪个特定的 deb 包
依赖性是主要问题,而且 Ubuntu 存储库中已经提供/安装了更多现代版本......