>

CENTOS 7: Fix yum after failed update

Ended up with a ton of duplicate errors and complaints about multiple architectures. Ran several things such as: sudo yum update –skip-broken sudo yum-complete-transaction sudo yum-complete-transaction –cleanup-only sudo yum update –skip-broken –exclude systemd-libs.otherarch sudo package-cleanup –cleandupes All fixed various things, but still left a handful of duplicates. This, as root, finally fixed: for i in $(package-cleanup –dupes); do rpm -e –justdb $i –nodeps; done yum update
read more

Format USB Drive for EXT4

Use lsblk to identify device $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 119.2G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 55.4G 0 part ├─centos_kate-swap 253:0 0 3G 0 lvm [SWAP] ├─centos_kate-root 253:1 0 35.2G 0 lvm / └─centos_kate-home 253:2 0 17.2G 0 lvm /home sdb 8:16 1 28.9G 0 disk └─sdb1 8:17 1 28.9G 0 part /mnt/KATE_BACKUP sr0 11:0 1 1024M 0 rom Format with EXT4 Create a GPT partition table by issuing: sudo parted /dev/sdb –script — mklabel gpt Run the following command to create a EXT4 partition that takes the whole space: sudo parted /dev/sdb –script...
read more

GIT: Change Master of Orphaned Repo

When a Origin Master becomes unavailable create a new repo for the master and then on the client: $ git remote rm origin $ git remote add origin gitpriv@backwater.techmentor.com.com:gitrepo/provisioning/ubuntu.git $ git config master.remote origin $ git config master.merge refs/heads/master $ git push –set-upstream origin master and maybe $ git push –all $ git push –tags
read more