zoukankan      html  css  js  c++  java
  • Gentoo Linux 学习笔记2

         在RHEL系列的Linux操作系统中,可以通过rpm -ql package的方式来查看这个软件包共有哪一些文件所构成。在Gentoo下,也有这样的工具,equery。要使用这个工具,首先要安装gentoolkit,可以通过emerge gentoolkit方式来安装这个软件包。

          equery工具的用法,如查找一个软件包都由哪一些文件构成。

    gentoo ~ # equery f grub # equery f 软件包名字 * Searching for grub ... * Contents of sys-boot/grub-0.97-r12: /bin /bin/mbchk /lib /lib/grub /lib/grub/i386-pc /lib/grub/i386-pc/e2fs_stage1_5 /lib/grub/i386-pc/fat_stage1_5 /lib/grub/i386-pc/ffs_stage1_5 /lib/grub/i386-pc/iso9660_stage1_5 /lib/grub/i386-pc/jfs_stage1_5 /lib/grub/i386-pc/minix_stage1_5 /lib/grub/i386-pc/reiserfs_stage1_5 /lib/grub/i386-pc/stage1 /lib/grub/i386-pc/stage2 /lib/grub/i386-pc/stage2_eltorito /lib/grub/i386-pc/ufs2_stage1_5 /lib/grub/i386-pc/vstafs_stage1_5 /lib/grub/i386-pc/xfs_stage1_5

      equery  g grub  查找一个软件包的依赖关系 

      

    gentoo ~ # equery  b /boot/grub/grub.conf * Searching for /boot/grub/grub.conf ... gentoo ~ # equery g grub * Searching for grub ... * dependency graph for sys-boot/grub-0.92-r1 `--  sys-boot/grub-0.92-r1 [missing keyword] `--  sys-libs/ncurses-5.9-r2  (>=sys-libs/ncurses-5.2-r5) amd64 [ sys-boot/grub-0.92-r1 stats: packages (2), max depth (1) ] * dependency graph for sys-boot/grub-0.94-r1 `--  sys-boot/grub-0.94-r1 amd64 `--  sys-libs/ncurses-5.9-r2  (>=sys-libs/ncurses-5.2-r5) amd64 `--  sys-devel/automake-1.12.6  (>=sys-devel/automake-1.7) amd64 `--  sys-devel/autoconf-2.69  (>=sys-devel/autoconf-2.5) amd64 [ sys-boot/grub-0.94-r1 stats: packages (4), max depth (1) ] * dependency graph for sys-boot/grub-0.96-r1 `--  sys-boot/grub-0.96-r1 amd64 `--  sys-libs/ncurses-5.9-r2  (>=sys-libs/ncurses-5.2-r5) amd64 `--  sys-devel/automake-1.12.6  (>=sys-devel/automake-1.7) amd64 `--  sys-devel/autoconf-2.69  (>=sys-devel/autoconf-2.5) amd64 [ sys-boot/grub-0.96-r1 stats: packages (4), max depth (1) ]
  • 相关阅读:
    django系列5.4--ORM中执行原生SQL语句, Python脚本中调用django环境
    Cookie背景了解
    [leetcode] 832. Flipping an Image
    [leetcode] 888. Fair Candy Swap
    [leetcode] 66. Plus One
    0000:Deep Learning Papers Reading Roadmap
    [算法]时间复杂度
    [leetcode] 771. Jewels and Stones
    [cs231n] Convolutional Neural Networks for Visual Recognition
    推翻自己,从头来过
  • 原文地址:https://www.cnblogs.com/gentoofly/p/3188855.html
Copyright © 2011-2022 走看看