데이터 원본 패키지 의 통계 정 보 를 표시 합 니 다.

6.4.1 데이터 원본 에 포 함 된 통계 정 보 를 표시 하 는'apt-cache stats'명령 은 현재 시스템 에서 사용 하 는 데 비 안 데이터 원본 의 통계 정 보 를 표시 하 는 데 사 용 됩 니 다.

  
  
  
  
  1. debian:~# apt-cache stats 
  2. Total package names : 24148 (966k) 
  3. Normal packages: 18698 
  4. Pure virtual packages: 301 
  5. Single virtual packages: 1223 
  6. Mixed virtual packages: 196 
  7. Missing: 3730 
  8. Total distinct versions: 19709 (946k) 
  9. Total dependencies: 124470 (3485k) 
  10. Total ver/file relations: 20598 (330k) 
  11. Total Provides mappings: 4163 (83.3k) 
  12. Total globbed strings: 95 (1061) 
  13. Total dependency version space: 484k 
  14. Total slack space: 125k 
  15. Total space accounted for: 5936k 

6.4.2 키워드 로 패키지 찾기'apt-cache search'명령 은 키워드 로 관련 패 키 지 를 찾 을 수 있 으 며,일반적으로 검색 에 사용 되 는 키 워드 는 패키지 의 이름 이나 패키지 이름 의 일 부 를 사용 합 니 다.'apt-cache search 명령 조회 결 과 는 패키지 와 패키지 에 대한 간단 한 설명 을 보 여 줍 니 다.

  
  
  
  
  1. debian:~# apt-cache search mkinitrd 
  2. bootcd-mkinitrd - bootcd extension to create an initrd-image usable for bootcd 
  3. mkinitrd-cd - Creates an initrd image for booting from a live CD-ROM or USB device 
  4. yaird - Yet Another mkInitRD 

6.4.3 패 키 지 를 표시 하 는 상세 한 정보 인'apt-cache show'명령 은 지정 한 패 키 지 를 표시 합 니 다.

  
  
  
  
  1. debian:~# apt-cache show bootcd-mkinitrd 
  2. Package: bootcd-mkinitrd 
  3. Priority: extra 
  4. Section: utils 
  5. Installed-Size: 80 
  6. Maintainer: Bernd Schumacher <[email protected]
  7. Architecture: all 
  8. Source: bootcd 
  9. Version: 2.53 
  10. Depends: initrd-tools, discover | discover1, busybox | busybox-static | busybox-cvs | busybox-cvs-static, bootcd (>= 2.50) 
  11. Filename: pool/main/b/bootcd/bootcd-mkinitrd_2.53_all.deb 
  12. Size: 16046 
  13. MD5sum: ea632fbe7e3584e29fe52510a3dbf3bc 
  14. Description: bootcd extension to create an initrd-image usable for bootcd 
  15. With bootcd you can copy your system to cd, run it from cd without need for 
  16. disks and restore your system on disk from bootcd. 
  17. This Package should be installed on a system you want to copy to cd, if the 
  18. kernel uses initrd (as all prebuild debian 2.4 and 2.6 kernels do). 
  19. With the command bootcdmkinitrd your initrd.img can be changed to use 
  20. discover and to automatically detect the cdrom the bios used to boot. 
  21. Tag: admin::boot, admin::filesystem, hardware::storage, hardware::storage:cd, role::sw:plugin 

6.4.4 패키지 의 의존 관 계 를 조회 하여 특정한 패키지 가 다른 어떤 패키지 에 의존 하 는 지 알 고'apt-cache depends'를 사용한다.

  
  
  
  
  1. bootcd-mkinitrd 
  2. Depends: initrd-tools 
  3. |Depends: discover 
  4. Depends: discover1 
  5. |Depends: busybox 
  6. |Depends: busybox-static 
  7. |Depends: <busybox-cvs> 
  8. Depends: <busybox-cvs-static
  9. Depends: bootcd 

6.4.5 패키지 의 역방향 의존 관 계 를 조회 하 는'apt-cache rdepend'명령 은 지정 한 패키지 의 역방향 의존 관 계 를 조회 하 는 데 사용 된다.즉,다른 패 키 지 는 지정 한 패 키 지 를 설치 하고 실행 하 는 필수 조건 으로 의존 해 야 한다.

  
  
  
  
  1. debian:~# apt-cache rdepends bootcd-mkinitrd 
  2. bootcd-mkinitrd 
  3. Reverse Depends: 
  4. bootcd 

좋은 웹페이지 즐겨찾기