Andrew Fletcher published: 24 August 2020 (updated) 13 January 2021 1 minute read
Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I hit a few walls and as a matter of process found some commands that are handy to run before doing a deep dive in Google.
Cleaning the cache
sudo yum clean all rm -rf /var/cache/yum/*
To make the cache
sudo yum clean all; sudo yum makecache
If you want to run several commands use semi-colon as noted above.
Updating
When running an update command run
sudo yum -y update
Related articles
Andrew Fletcher
•
15 Apr 2025
Fine-tuning Fail2Ban to stop Apache bogus FCGI attacks
Building a resilient web server Early in the year, we encountered a number of challenges, one of the most disruptive was a sustained wave of automated attacks hammering several of the web servers we manage. The volume of traffic overwhelmed server resources, slowing websites to a crawl and...
Andrew Fletcher
•
08 Apr 2025
How smart blocking protects your digital infrastructure
Across every industry, the operational risks of cyber threats are escalating. Automated bots, denial-of-service attacks and vulnerability scanners are increasingly common. For businesses operating in Australia and globally, implementing resilient, proactive security measures is essential to ensure...
Andrew Fletcher
•
16 Jan 2025
get IP address from terminal OSX
When troubleshooting network issues or configuring devices, knowing your IP address can be essential. Whether you're connected via Wi-Fi, Ethernet, or tethering through a mobile provider, macOS offers powerful built-in tools to quickly identify your IP address. Here's a practical guide tailored to...