mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-07 17:17:45 +03:00
b2c072cf0b
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
13 lines
218 B
Python
13 lines
218 B
Python
#!/usr/bin/python3
|
|
|
|
import subprocess
|
|
|
|
rpms = subprocess.check_output(["rpm", "-qa"])
|
|
rpms = rpms.decode("utf-8").split("\n")
|
|
rpms.sort()
|
|
|
|
for rpm in rpms:
|
|
if rpm == "":
|
|
continue
|
|
print(rpm, end="\r\n")
|