I'm a newbie to python. I have a python script to download a rpm file from S3 bucket.
BUCKET_NAME = 'tempdownload'
KEY = 'temp.rpm' # packaged using golang
platformName = platform.system()
s3 = boto3.resource('s3')
if platformName == 'Linux':
bucket = s3.Bucket(BUCKET_NAME)
except botocore.exceptions.ClientError as e:
if e.response['Error']['Code'] == "404":
print("The object does not exist.")
print("not valid operating system")
I want to add a script in the same file to install the downloaded rpm file or msi package for windows. I tried searching online but didn't get any information. Would appreciate if anyone provide some pointers.