Proper way to delete channel, repository, packages in Spacewalk

This is the way to remove the channel together with repository. It will also remove the packages from the file system. The workflow is as follows: remove subchannels and master channel remove repos remove orphan packages sync/clean up file system with Spacewalk DB records remove broken links to RPM packages (optional) You can remove channels and repos within GUI. You can also perform it all on command line: [Read More]

fdupes to remove duplicate files on Linux

Quick and dirty solution to remove all duplicate files but one: yes 1 | fdupes -rd /path/to/folder Comments: David Hrbáč - Apr 4, 2012Filip, Thanks, going to push a new spec file to RepoForge. DH Filip - Mar 5, 2012Hi Dave. Thanks for this tip on a useful sysutil. The following cmdline options were good to me but it may depend on your fdupes version. See below. [Read More]

Ssh complains host id has been changed

There are situations when host id might be changed a few times during fast, automatic, and massive host deployment. Ssh client begins to complain on changed host id. [root@builder2 ~]# ssh webmel53 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. [Read More]
bash 

Send file as attachment from commnad line

There’s an easy way of sending files as attachment from command line:

uuencode file name | mail -s "Subject" "to@tld.cz"  -- -ffrom@tld.cz

Yes, there is double hyphen and -f before the from email address.

bash  mail