How To Upgrade PHP on AWS Linux

Author: , August 22nd, 2019

As root:



Be sure to restart your web server!!

How To Fix YUM Update Errors with Percona GPG Keys

Author: , April 16th, 2019

Problem: Trying to run a yum -y update as root aborts with the following error:

The solution, found on the Percona website, is this: sudo yum update percona-release Source URL:

How To Remove a Package Without the Dependencies (yum/rpm)

Author: , January 9th, 2018

To remove a specific package without its dependencies use rpm:

As always, YMMV!

How To Fix apt-get Errors on Old Ubuntu Hosts

Author: , August 3rd, 2016

As usual, whenever I have to do sysadmin on a Ubuntu-based OS, I find problems. When will people realize what a horrible OS it is? In this case, packages needed were unavailable. For apt-get to function, the file /etc/apt/sources.list must be edited to change all URLs from and to, using the sed […]

How To Install the AWS CLI

Author: , March 29th, 2016

ls -l ~/.aws

cat ~/.aws/config

cat ~/.aws/credentials

How To Fix yum after Python Upgrade

Author: , December 8th, 2015

I upgraded to Python 2.7 and yum promptly broke. The quick fix is to edit the yum executable script and change the top line that invokes Python: sudo vim which yum CHANGE FROM: #!/usr/bin/python TO: #!/usr/bin/python26 UPDATED August 2nd, 2016: On one system, I had to use the following Python 2.4 fix instead, even though […]

How To Patch the Linux Ghost gethostbyname Buffer Overflow Vulnerability in glibc

Author: , January 28th, 2015

As per ARS Technica: “An extremely critical vulnerability affecting most Linux distributions gives attackers the ability to execute malicious code on servers used to deliver e-mail, host webpages, and carry out other vital functions.” To patch, run: yum update glibc Article: Amazon Alert: Original Advisory:

How To Use netcat and telnet for Simple Network Testing

Author: , January 27th, 2015

yum install nc SERVER-SIDE: host1 shell> echo hello | nc -l 3456 CLIENT-SIDE: host2 shell> nc host1 3456 hello ~or~ CLIENT-SIDE: yum install telnet host1 shell> telnet host2 {PORT}

How To install Boto on Amazon Linux using yum and pip

Author: , August 15th, 2013

How To List All Installed Packages Using yum

Author: , April 10th, 2012

yum list installed -OR- rpm -qa