LaTeX 설치에 사용되는 공간이 얼마나 되는지 알고 싶습니다. 나는 이것을 시도했지만 apt
그것이 가능한지 확실하지 않습니다. 내가하고 싶은 것은 이런 명령을 갖는 것입니다
apt-cache list --show-install-size texlive*
산출
128 MB
물론 이것은 show-install-size
존재하지 않습니다.
답변1
모든바이너리스타의 리뷰, dpkg-query
설치된 패키지의 경우. 패키지를 설치하기 전에 크기를 고려한다면 apt
또는 를 사용할 수 있습니다 apt-cache
.
apt show
. 또는 필드 apt-cache show
가 주어졌을 때Installed-Size:
stew ~ $ apt show texlive
Package: texlive
Version: 2020.20200417-1
Priority: optional
Section: tex
Source: texlive-base
Maintainer: Debian TeX Maintainers <[email protected]>
Installed-Size: 72.7 kB
Depends: texlive-fonts-recommended (>= 2020.20200417), texlive-latex-base (>= 2020.20200417), texlive-latex-recommended (>= 2020.20200417)
Homepage: http://www.tug.org/texlive/
Tag: made-of::tex, role::app-data, role::program, use::typesetting,
works-with-format::tex, works-with::text
Download-Size: 33.4 kB
APT-Manual-Installed: no
APT-Sources: http://ftp.debian.org/debian testing/main amd64 Packages
Description: TeX Live: A decent selection of the TeX Live packages
The TeX Live software distribution offers a complete TeX system. It
encompasses programs for typesetting, previewing and printing of TeX
documents in many different languages, and a large collection of TeX macros
and font libraries. . This metapackage provides a decent selection of the
TeX Live packages which should suffice for the most common tasks. . The
distribution also includes extensive general documentation about TeX, as
well as the documentation accompanying the included software packages.
당신은 할 수 있습니다:
$ apt-cache show texlive | grep Installed-Size
Installed-Size: 72.7 kB
또는 texlive*
:
$ apt-cache show texlive* | grep -E 'Package:|Installed-Size:'
Package: texlive-fonts-recommended
Installed-Size: 15029
Package: texlive-lang-portuguese
Installed-Size: 16440
Package: texlive-latex-recommended
Installed-Size: 31735
Package: texlive-base
Installed-Size: 74760
...
~에서man apt(8)
:
SYNOPSIS
apt ... {list | search | show | ...}...
...
show (apt-cache(8))
Show information about the given package(s) including its dependencies, installation and
download size, sources the package is available from, the description of the packages
content and much more. It can e.g. be helpful to look at this information before allowing
apt(8) to remove a package or while searching for new packages to install.
...
답변2
이것을 봐주세요dpkg 쿼리
dpkg-query -Wf '${Installed-Size}\t${Package}\n'
rpm 기반 배포의 경우
rpm -qa --queryformat '%{SIZE} %{NAME} \n'
산출
264106951 firefox
256914779 linux-firmware
235327481 google-chrome-stable
222208346 glibc-all-langpacks
177040404 docker-ce-cli
답변3
적성( apt-get install aptitude
)을 살펴보셨나요? 소프트웨어 패키지의 사용자 인터페이스이며 다운로드 및 설치 크기를 표시합니다. 하지만 명령줄 인터페이스는 아닙니다...