Yum install dependencies for a local RPM
Got an RPM laying about you need to install but it has a bunch of dependencies? well let yum do the heavy lifting. yum –nogpgcheck localinstall SomeApp.noarch.rpm
Got an RPM laying about you need to install but it has a bunch of dependencies? well let yum do the heavy lifting. yum –nogpgcheck localinstall SomeApp.noarch.rpm
I just noticed I had 8 kernels installed on a machine. dont need but one…. so I rebooted to make sure I was using the newest, and removed all the old ones via these simple commands : Ubuntu / Debian / dpkg / Apt: dpkg -l ‘linux-*’ | sed ‘/^ii/!d;/'”$(uname -r | sed “s/\(.*\)-\([^0-9]\+\)/\1/”)”‘/d;s/^[^…
We recently moved a hosting to a new data center and wanted to test speeds, so I needed fixed size files to see what kind of speeds people could achieve while downloading them. I decided on the arbitrary numbers of 100MB and 500MB. Heres how I generated fixes size files via bash. for 500 MB…
PHP PDO MySQL Needed to make a simple php script with mysql in it, so I decided to use PDO because… well peer pressure 😐 so heres a basic PHP PDO MYsql script. The idea is I have a table called table with a field called field in a database called somedatabase. We have 1000…
Secure Copy (SCP) provides a secure and authenticated method for copying files between hosts. SCP relies on Secure Shell (SSH). Copy the file “somefile.txt” from a remote host to the local host scp [email protected]:somefile.txt /some/local/directory Copy the file “somefile.txt” from the local host to a remote host scp somefile.txt [email protected]:/some/remote/directory Copy the directory “somedir” from…
Need to extract a bzip2 or gzip file? well here’s how to do it : Bzip2 in the file.bz2 format : bunzip2 file.bz2 a tar file with bzip2 compression : tar xjvf file.tar.bz2 A tar file with no compression : tar xvf file.tar A tar file with Gzip compression : tar zxvf file.tar.gz tar…