mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-08 05:57:29 +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")
|