Below is the simple program to install a package named "vsftpd" in linux OS. You need to import "os" module for that.
#!/usr/bin/python3.6 import os try: os.system('dnf install vsftpd') except: exit("Failed to install package")
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.