Archive for the ‘OS configs’ Category

How to prevent a package update in Debian (dpkg, aptitude, dselect). Not for *buntu kids …

without comments

If you want to lock some packages on your debian PC, then you can use next variants. As told in debian online manual (

Read the rest of this entry »

Written by spectre

April 30th, 2013 at 12:50 pm

Yum: prevent a updating the packages

without comments

When you are running the new servers, the one thing you do not want to do – is upgrade the kernel. Because that is the only Linux update operation that requires a reboot once it is done — and in a production environment you often can’t have downtime.

Read the rest of this entry »

Written by spectre

March 30th, 2013 at 8:05 am

Fedora, RHEL / Centos set default gateway

without comments

There is no specific command on CentOS to set the default route or gateway, there are several ways to do this on CentOS (as there often are). The method I am showing you will work on all versions of CentOS with or without a GUI and involves directly editing the network configuration file using Vim.

Setting default gateway on CentOS first requires us to open /etc/sysconfig/network config file using Vim:

$ vim /etc/sysconfig/network

You now need to add your default GW, if you don’t know the IP of your default GW (aka default route) then you need to ask your ISP / web host or network admin. The example below assumes our default GW is


I always append this information to the bottom on the network config file on CentOS.

After adding the default route (GW) you need to restart the networking service using:

# service networking restart

Written by spectre

March 28th, 2013 at 9:21 pm