Best Method: Use : https://raw.githubusercontent.com/linuxlefty/tar2rpm/master/tar2rpm.sh 1. ensure rpmbuild is installed (yum install rpm-build) 2. tar up the files you want : cd / tar cpvf /root/files_to_convert_to_rpm.tar /var/some_dir/ /usr/local/bin/some_file etc. cd /root/ ./tar2rpm.sh --target / --name YOUR_RPM_NAMEHERE --version 1 files_to_convert_to_rpm.tar 3. done Old Method: 1. Make sure the rpmbuild tools are installed: yum install rpm-build 2. create the following script and run it: #!/bin/bash PACKAGE_NAME=your_package_name VERSION=1 FILE_LIST="/etc/file_1 /usr/local/bin/file_2 /usr/local/bin/file_3 /home/whole_dir_will_be_included" rm -fR /tmp/$PACKAGE_NAME-$VERSION mkdir /tmp/$PACKAGE_NAME-$VERSION tar czpvf /tmp/$PACKAGE_NAME-$VERSION/$PACKAGE_NAME-$VERSION.tgz $FILE_LIST cd /tmp/$PACKAGE_NAME-$VERSION tar xzpvf $PACKAGE_NAME-$VERSION.tgz rm $PACKAGE_NAME-$VERSION.tgz cd .. # make sure you use .tar.gz and not .tgz tar czpvf /usr/src/redhat/SOURCES/$PACKAGE_NAME-$VERSION.tar.gz $PACKAGE_NAME-$VERSION cd /usr/src/redhat/SPECS/ for the spec file: Summary: my misc files rpm Name: mypac Version: 1 Release: 1 License: none Group: System/Base BuildArch: i386 Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description my misc files rpm %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/ install -d $RPM_BUILD_ROOT/usr/local/bin/ install -d $RPM_BUILD_ROOT/home/blah/ install etc/file_1 $RPM_BUILD_ROOT/etc/file_1 install install home/blah/* $RPM_BUILD_ROOT/home/blah/ %clean rm -rf $RPM_BUILD_ROOT %files %dir /etc/ %defattr(-,root,root,-) /etc/file_1 list each file here a dir with wildcard will work too %post %changelog * Thu Jan 14 2016 root - mypack-1 - Initial build. 1. decide on the package name. i'll use "mypack" 2. decide on a version number. i'll use 1 3. tar up the files you want to have in the rpm: mkdir /tmp/mypack-1 tar czpvf /tmp/mypack-1/mypack.tgz /etc/blah.txt /usr/local/bin/blah.php /usr/local/bin/blah2.php cd /tmp/mypack-1 tar xzpvf mypack.tgz rm mypack.tgz cd .. # make sure you use .tar.gz and not .tgz tar czpvf /usr/src/redhat/SOURCES/httpd-tools-1.tar.gz httpd2-tools-1/ cd /usr/src/redhat/SPECS/