LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / lib / rpm / | Server Ip : 104.21.78.54 |
Filename | /lib/rpm/rpm.daily |
Size | 296 |
Permission | rw-r--r-- |
Owner | |
Create time | 08-Dec-2022 22:35 |
Last modified | 24-Nov-2021 16:33 |
Last accessed | 24-Nov-2021 16:33 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
tmpfile=`/bin/mktemp /var/log/rpmpkgs.XXXXXXXXX` || exit 1
/bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 \
| /bin/sort > "$tmpfile"
if [ ! -s "$tmpfile" ]; then
rm -f "$tmpfile"
exit 1
fi
/bin/mv "$tmpfile" /var/log/rpmpkgs
/bin/chmod 0644 /var/log/rpmpkgs
tmpfile=`/bin/mktemp /var/log/rpmpkgs.XXXXXXXXX` || exit 1
/bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 \
| /bin/sort > "$tmpfile"
if [ ! -s "$tmpfile" ]; then
rm -f "$tmpfile"
exit 1
fi
/bin/mv "$tmpfile" /var/log/rpmpkgs
/bin/chmod 0644 /var/log/rpmpkgs