# Most recent "server" DEB from our download page: vagrant@ubuntu18-bionic:/tmp/inspect_deb$ wget https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.2/multiverse/binary-amd64/mongodb-org-server_4.2.3_amd64.deb vagrant@ubuntu18-bionic:/tmp/inspect_deb$ ar -x mongodb-org-server_4.2.3_amd64.deb vagrant@ubuntu18-bionic:/tmp/inspect_deb$ ls -la total 35876 drwxrwxr-x 2 vagrant vagrant 4096 Feb 14 18:10 . drwxrwxrwt 9 root root 4096 Feb 14 18:10 .. -rw-r--r-- 1 vagrant vagrant 2688 Feb 14 18:10 control.tar.xz -rw-r--r-- 1 vagrant vagrant 18357960 Feb 14 18:10 data.tar.xz -rw-r--r-- 1 vagrant vagrant 4 Feb 14 18:10 debian-binary -rw-rw-r-- 1 vagrant vagrant 18360840 Jan 27 15:48 mongodb-org-server_4.2.3_amd64.deb vagrant@ubuntu18-bionic:/tmp/inspect_deb$ tar xf control.tar.xz vagrant@ubuntu18-bionic:/tmp/inspect_deb$ tar xf data.tar.xz ls -lavagrant@ubuntu18-bionic:/tmp/inspect_deb$ ls -la total 35912 drwxr-xr-x 5 vagrant vagrant 4096 Dec 19 2013 . drwxrwxrwt 9 root root 4096 Feb 14 18:11 .. -rw-r--r-- 1 vagrant vagrant 17 Dec 19 2013 conffiles -rw-r--r-- 1 vagrant vagrant 3139 Dec 19 2013 control -rw-r--r-- 1 vagrant vagrant 2688 Feb 14 18:10 control.tar.xz -rw-r--r-- 1 vagrant vagrant 18357960 Feb 14 18:10 data.tar.xz -rw-r--r-- 1 vagrant vagrant 4 Feb 14 18:10 debian-binary drwxr-xr-x 2 vagrant vagrant 4096 Dec 19 2013 etc drwxr-xr-x 3 vagrant vagrant 4096 Dec 19 2013 lib -rw-r--r-- 1 vagrant vagrant 850 Dec 19 2013 md5sums -rw-rw-r-- 1 vagrant vagrant 18360840 Jan 27 15:48 mongodb-org-server_4.2.3_amd64.deb -rwxr-xr-x 1 vagrant vagrant 1964 Dec 19 2013 postinst -rwxr-xr-x 1 vagrant vagrant 372 Dec 19 2013 postrm -rwxr-xr-x 1 vagrant vagrant 180 Dec 19 2013 prerm drwxr-xr-x 4 vagrant vagrant 4096 Dec 19 2013 usr vagrant@ubuntu18-bionic:/tmp/inspect_deb$ grep -iR systemctl * postrm: systemctl --system daemon-reload >/dev/null || true vagrant@ubuntu18-bionic:/tmp/inspect_deb$ mkdir ../inspect_rpm && cd ../inspect_rpm # Most recent "server" RPM from our download page: vagrant@ubuntu18-bionic:/tmp/inspect_rpm$ wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.2/x86_64/RPMS/mongodb-org-server-4.2.3-1.el7.x86_64.rpm vagrant@ubuntu18-bionic:/tmp/inspect_rpm$ rpm -qp --scripts mongodb-org-server-4.2.3-1.el7.x86_64.rpm | grep -i systemctl warning: mongodb-org-server-4.2.3-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 058f8b6b: NOKEY /usr/bin/systemctl enable mongod /usr/bin/systemctl daemon-reload /usr/bin/systemctl disable mongod /usr/bin/systemctl restart mongod >/dev/null 2>&1 || : vagrant@ubuntu18-bionic:/tmp/inspect_rpm$ rpm -qp --scripts mongodb-org-server-4.2.3-1.el7.x86_64.rpm warning: mongodb-org-server-4.2.3-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 058f8b6b: NOKEY preinstall scriptlet (using /bin/sh): if ! /usr/bin/id -g mongod &>/dev/null; then /usr/sbin/groupadd -r mongod fi if ! /usr/bin/id mongod &>/dev/null; then /usr/sbin/useradd -M -r -g mongod -d /var/lib/mongo -s /bin/false -c mongod mongod > /dev/null 2>&1 fi postinstall scriptlet (using /bin/sh): if test $1 = 1 then /usr/bin/systemctl enable mongod fi if test $1 = 2 then /usr/bin/systemctl daemon-reload fi preuninstall scriptlet (using /bin/sh): if test $1 = 0 then /usr/bin/systemctl disable mongod fi postuninstall scriptlet (using /bin/sh): if test $1 -ge 1 then /usr/bin/systemctl restart mongod >/dev/null 2>&1 || : fi