mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-03-05 20:58:16 +03:00
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")
|