Category: Linux

  • Installing just security updates with yum

    Install just the security patches, but not kernel or java patches   yum update –security –exclude=kernel* –exclude=java*

  • Yum Security Only Update

    To update your system with YUM but only install the security patches, use the following: # yum update-minimal —security

  • Install and configure EPEL repository

    rpm -Uvh

  • Cool additions to the Gnome Desktop

    Go to and install the browser extension. Use firefox, not chrome, chrome goes haywire when you install the browser extension Then look for the following extensions and install them. Dash to Panel Arc Menu see original article here:

  • Find and replace text within a file using sed

    Find and replace text within a file using sed The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt The s is the substitute command of sed for find and replace It tells sed to find all occurrences of ‘old-text’ and replace with…

  • Resetting the Root Password of RHEL-8

    Resetting the Root Password of RHEL-8 Resolution 1) Break the boot sequence by adding ‘rd.break’ at kernel stanza in grub. To do this, restart your system and when the GRUB splash screen comes: Select/highlight the kernel you wish to boot using the up/down arrow keys. Press the e key to edit the entry. Select/highlight the…

  • Remove CTRL-M characters from a file in UNIX

    Remove CTRL-M characters from a file in UNIX 1) Open the file in vi 2) Type the following :%s/^M//g 3) Press enter to the ^M you have to type CTRL+V and then CTRL+M

  • Hard Drive Burn-in Testing

    Hard Drive Burn-in Testing THIS TEST WILL DESTROY ANY DATA ON THE DISK SO ONLY RUN THIS ON A NEW DISK WITHOUT DATA ON IT OR BACK UP ANY DATA FIRST 1) Run a short test # smartctl -t short /dev/sdb 2) Run a conveyance test ??? # smartctl -t conveyance /dev/sdb 3) Run a…

  • Installing Visual Studio Code on RHEL

    RHEL, Fedora, and CentOS based distributions We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository: sudo rpm –import sudo sh -c ‘echo -e “[code]\nname=Visual Studio Code\nbaseurl=\nenabled=1\ngpgcheck=1\ngpgkey=” > /etc/yum.repos.d/vscode.repo’ Then update the package cache and install the package using dnf (Fedora 22 and…

  • Find out more about Ansible