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

Author: , January 9th, 2018

To remove a specific package without its dependencies use rpm: 1 2 rpm -qa | grep pecl rpm -e –nodeps php55-pecl-jsonc php55-pecl-jsonc-devel rpm -qa | grep pecl rpm -e –nodeps php55-pecl-jsonc php55-pecl-jsonc-devel 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 security.ubuntu.com and archive.ubuntu.com to old-releases.ubuntu.com, using the sed […]

How To Install the AWS CLI

Author: , March 29th, 2016

http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html 1 2 3 4 5 6 7 8 cd curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" unzip awscli-bundle.zip yum install python26 /usr/bin/python26 awscli-bundle/install -i /opt/aws/awscli -b /usr/bin/aws aws configure aws s3 ls aws ec2 describe-instances –output text cd curl “https://s3.amazonaws.com/aws-cli/awscli-bundle.zip” -o “awscli-bundle.zip” unzip awscli-bundle.zip yum install python26 /usr/bin/python26 awscli-bundle/install -i /opt/aws/awscli -b /usr/bin/aws aws configure aws […]

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: http://arstechnica.com/security/2015/01/highly-critical-ghost-allowing-code-execution-affects-most-linux-systems/ Amazon Alert: https://alas.aws.amazon.com/ALAS-2015-473.html Original Advisory: http://www.openwall.com/lists/oss-security/2015/01/27/9

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

1 2 3 yum install python python /usr/bin/easy_install pip pip install boto yum install python python /usr/bin/easy_install pip pip install boto

How To List All Installed Packages Using yum

Author: , April 10th, 2012

yum list installed -OR- rpm -qa

How To Install s3fs On Amazon Linux Using yum

Author: , April 2nd, 2012

To be performed as the root user: 1 2 3 4 5 6 7 8 9 10 yum install gcc libstdc++-devel gcc-c++ curl-devel libxml2-devel openssl-devel mailcap fuse fuse-devel wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz tar xvzf s3fs-1.61.tar.gz cd s3fs-1.61/ ./configure –prefix=/usr make make install vim  /etc/passwd-s3fs chmod 640 /etc/passwd-s3fs s3fs yourBucketNameHere /mnt yum install gcc libstdc++-devel gcc-c++ curl-devel libxml2-devel […]

How To Install FastCGI On Fedora

Author: , March 27th, 2012

1 2 3 4 5 yum install httpd-devel wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz tar xzf mod_fastcgi-current.tar.gz cd mod_fastcgi-* cp Makefile.AP2 Makefile yum install httpd-devel wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz tar xzf mod_fastcgi-current.tar.gz cd mod_fastcgi-* cp Makefile.AP2 Makefile The next two steps will depend on your architecture: For ia-32: 1 2 make top_dir=/usr/lib/httpd make top_dir=/usr/lib/httpd install make top_dir=/usr/lib/httpd make top_dir=/usr/lib/httpd install For […]