Yum Add Repo Manually

Add a yum repo manually by adding a configuration file in /etc/yum.repo.d/ directory.

cd /etc/yum.repos.d/
vi newrepo

Add the following.

name=New Repo for RHEL/ CentOS $releasever - $basearch

You may need to import the key.

rpm --import http://newrepo.domain.com/RPM-GPG-KEY.txt

Finally, test the new repo by running the following.

yum update -y
yum install new-package

Adding a XFS Volume

Add a disk volume via cloud console. Then perform the following commands:

# check the new block
# format
fdisk /dev/sdc
# create file system
mkfs.xfs -f /dev/sdc1
# get uuid
blkid /dev/sdc1
# vi /etc/fstab
UUID="xxxxxxxxxxxxxxxxxxxxx" /mnt/directory xfs defaults 0 0
# mount
mount -a

Git Add

The Git Add command will add files to the current local working repository. This is how files are officially added to the local repository. You can specify one file or multiple files by using wildcards.

Add one file

git add sample.php

Add all files

git add .

Add all PHP files

git add *.php

Subversion Add

Adding a file or directory to Subversion is quite easy. The following commands will add a file and a directory to the current Subversion working directory. The added file or directory is only added to the local working directory, and not to the Subversion repository. For that to happen, you’ll need to issue a Subversion commit to synch the files to the repository. The following commands simply add files and directories in the local working directory.

Add a file

svn add foo.c

Add a directory

svn add directory