mondoohq / cnquery

open source, cloud-native, graph-based asset inventory

Home Page:https://cnquery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ubuntu packages with no files

imilchev opened this issue · comments

Use cnquery shell docker image ubuntu:22.04 and run: packages.where(name == "adduser"){*}:

packages.where.list: [
  0: {
    epoch: ""
    files: []
    status: "install ok installed"
    outdated: false
    description: "add and remove users and groups
This package includes the 'adduser' and 'deluser' commands for creating
and removing users.
.
- 'adduser' creates new users and groups and adds existing users to
existing groups;
- 'deluser' removes users and groups and removes users from a given
group.
.
Adding users with 'adduser' is much easier than adding them manually.
Adduser will choose appropriate UID and GID values, create a home
directory, copy skeletal user configuration, and automate setting
initial values for the user's password, real name and so on.
.
Deluser can back up and remove users' home directories
and mail spool or all the files they own on the system.
.
A custom script can be executed after each of the commands."
    version: "3.118ubuntu5"
    format: "deb"
    cpes: [
      0: cpe uri="cpe:2.3:a:adduser:adduser:3.118ubuntu5:all:*:*:*:*:*:*"
    ]
    installed: true
    origin: ""
    name: "adduser"
    arch: "all"
    purl: "pkg:deb/ubuntu/adduser@3.118ubuntu5?arch=all&distro=ubuntu-22.04"
    available: ""
  }
]

I also tried packages.where(name == "e2fsprogs"){*} and it seems to return a lot of folders, some of them also nested in each other. Also not entirely sure whether that is correct:

packages.where.list: [
  0: {
    format: "deb"
    status: "install ok installed"
    cpes: [
      0: cpe uri="cpe:2.3:a:e2fsprogs:e2fsprogs:1.46.5-2ubuntu1.1:amd64:*:*:*:*:*:*"
    ]
    name: "e2fsprogs"
    origin: ""
    version: "1.46.5-2ubuntu1.1"
    files: [
      0: pkgFileInfo path="/."
      1: pkgFileInfo path="/etc"
      2: pkgFileInfo path="/etc/cron.d"
      3: pkgFileInfo path="/etc/cron.d/e2scrub_all"
      4: pkgFileInfo path="/etc/e2scrub.conf"
      5: pkgFileInfo path="/etc/mke2fs.conf"
      6: pkgFileInfo path="/lib"
      7: pkgFileInfo path="/lib/systemd"
      8: pkgFileInfo path="/lib/systemd/system"
      9: pkgFileInfo path="/lib/systemd/system/e2scrub@.service"
      10: pkgFileInfo path="/lib/systemd/system/e2scrub_all.service"
      11: pkgFileInfo path="/lib/systemd/system/e2scrub_all.timer"
      12: pkgFileInfo path="/lib/systemd/system/e2scrub_fail@.service"
      13: pkgFileInfo path="/lib/systemd/system/e2scrub_reap.service"
      14: pkgFileInfo path="/lib/udev"
      15: pkgFileInfo path="/lib/udev/rules.d"
      16: pkgFileInfo path="/lib/udev/rules.d/96-e2scrub.rules"
      17: pkgFileInfo path="/sbin"
      18: pkgFileInfo path="/sbin/badblocks"
      19: pkgFileInfo path="/sbin/debugfs"
      20: pkgFileInfo path="/sbin/dumpe2fs"
      21: pkgFileInfo path="/sbin/e2fsck"
      22: pkgFileInfo path="/sbin/e2image"
      23: pkgFileInfo path="/sbin/e2scrub"
      24: pkgFileInfo path="/sbin/e2scrub_all"
      25: pkgFileInfo path="/sbin/e2undo"
      26: pkgFileInfo path="/sbin/mke2fs"
      27: pkgFileInfo path="/sbin/resize2fs"
      28: pkgFileInfo path="/sbin/tune2fs"
      29: pkgFileInfo path="/usr"
      30: pkgFileInfo path="/usr/bin"
      31: pkgFileInfo path="/usr/bin/chattr"
      32: pkgFileInfo path="/usr/bin/lsattr"
      33: pkgFileInfo path="/usr/lib"
      34: pkgFileInfo path="/usr/lib/x86_64-linux-gnu"
      35: pkgFileInfo path="/usr/lib/x86_64-linux-gnu/e2fsprogs"
      36: pkgFileInfo path="/usr/lib/x86_64-linux-gnu/e2fsprogs/e2scrub_all_cron"
      37: pkgFileInfo path="/usr/lib/x86_64-linux-gnu/e2fsprogs/e2scrub_fail"
      38: pkgFileInfo path="/usr/sbin"
      39: pkgFileInfo path="/usr/sbin/e2freefrag"
      40: pkgFileInfo path="/usr/sbin/e4crypt"
      41: pkgFileInfo path="/usr/sbin/e4defrag"
      42: pkgFileInfo path="/usr/sbin/filefrag"
      43: pkgFileInfo path="/usr/sbin/mklost+found"
      44: pkgFileInfo path="/usr/share"
      45: pkgFileInfo path="/usr/share/doc"
      46: pkgFileInfo path="/usr/share/doc/e2fsprogs"
      47: pkgFileInfo path="/usr/share/doc/e2fsprogs/NEWS.gz"
      48: pkgFileInfo path="/usr/share/doc/e2fsprogs/README"
      49: pkgFileInfo path="/usr/share/doc/e2fsprogs/copyright"
      50: pkgFileInfo path="/usr/share/lintian"
      51: pkgFileInfo path="/usr/share/lintian/overrides"
      52: pkgFileInfo path="/usr/share/lintian/overrides/e2fsprogs"
      53: pkgFileInfo path="/usr/share/man"                                          <-- from here down these are all nested
      54: pkgFileInfo path="/usr/share/man/man1"
      55: pkgFileInfo path="/usr/share/man/man1/chattr.1.gz"
      56: pkgFileInfo path="/usr/share/man/man1/lsattr.1.gz"
      57: pkgFileInfo path="/usr/share/man/man5"
      58: pkgFileInfo path="/usr/share/man/man5/e2fsck.conf.5.gz"
      59: pkgFileInfo path="/usr/share/man/man5/ext4.5.gz"
      60: pkgFileInfo path="/usr/share/man/man5/mke2fs.conf.5.gz"
      61: pkgFileInfo path="/usr/share/man/man8"                                <-- from here down these are all nested
      62: pkgFileInfo path="/usr/share/man/man8/badblocks.8.gz"
      63: pkgFileInfo path="/usr/share/man/man8/debugfs.8.gz"
      64: pkgFileInfo path="/usr/share/man/man8/dumpe2fs.8.gz"
      65: pkgFileInfo path="/usr/share/man/man8/e2freefrag.8.gz"
      66: pkgFileInfo path="/usr/share/man/man8/e2fsck.8.gz"
      67: pkgFileInfo path="/usr/share/man/man8/e2image.8.gz"
      68: pkgFileInfo path="/usr/share/man/man8/e2label.8.gz"
      69: pkgFileInfo path="/usr/share/man/man8/e2mmpstatus.8.gz"
      70: pkgFileInfo path="/usr/share/man/man8/e2scrub.8.gz"
      71: pkgFileInfo path="/usr/share/man/man8/e2scrub_all.8.gz"
      72: pkgFileInfo path="/usr/share/man/man8/e2undo.8.gz"
      73: pkgFileInfo path="/usr/share/man/man8/e4crypt.8.gz"
      74: pkgFileInfo path="/usr/share/man/man8/e4defrag.8.gz"
      75: pkgFileInfo path="/usr/share/man/man8/filefrag.8.gz"
      76: pkgFileInfo path="/usr/share/man/man8/mke2fs.8.gz"
      77: pkgFileInfo path="/usr/share/man/man8/mklost+found.8.gz"
      78: pkgFileInfo path="/usr/share/man/man8/resize2fs.8.gz"
      79: pkgFileInfo path="/usr/share/man/man8/tune2fs.8.gz"
      80: pkgFileInfo path="/sbin/e2label"
      81: pkgFileInfo path="/sbin/e2mmpstatus"
      82: pkgFileInfo path="/sbin/fsck.ext2"
      83: pkgFileInfo path="/sbin/fsck.ext3"
      84: pkgFileInfo path="/sbin/fsck.ext4"
      85: pkgFileInfo path="/sbin/mkfs.ext2"
      86: pkgFileInfo path="/sbin/mkfs.ext3"
      87: pkgFileInfo path="/sbin/mkfs.ext4"
      88: pkgFileInfo path="/usr/share/doc/e2fsprogs/changelog.Debian.gz"
      89: pkgFileInfo path="/usr/share/man/man5/ext2.5.gz"
      90: pkgFileInfo path="/usr/share/man/man5/ext3.5.gz"
      91: pkgFileInfo path="/usr/share/man/man8/fsck.ext2.8.gz"
      92: pkgFileInfo path="/usr/share/man/man8/fsck.ext3.8.gz"
      93: pkgFileInfo path="/usr/share/man/man8/fsck.ext4.8.gz"
      94: pkgFileInfo path="/usr/share/man/man8/mkfs.ext2.8.gz"
      95: pkgFileInfo path="/usr/share/man/man8/mkfs.ext3.8.gz"
      96: pkgFileInfo path="/usr/share/man/man8/mkfs.ext4.8.gz"
    ]
    description: "ext2/ext3/ext4 file system utilities
The ext2, ext3 and ext4 file systems are successors of the original ext
(\"extended\") file system. They are the main file system types used for
hard disks on Debian and other Linux systems.
.
This package contains programs for creating, checking, and maintaining
ext2/3/4-based file systems.  It also includes the \"badblocks\" program,
which can be used to scan for bad blocks on a disk or other storage device."
    epoch: ""
    purl: "pkg:deb/ubuntu/e2fsprogs@1.46.5-2ubuntu1.1?arch=amd64&distro=ubuntu-22.04"
    installed: true
    outdated: false
    available: ""
    arch: "amd64"
  }
]