Alexander@Rau wrote:
For some stupid reason I deleted the whole file structure of the /usr/src/redhat/ directory. Now I am having trouble rpmbuilding anaconda because it can't find the necessary folders. Could somebody please let me know the file structure of the /usr/src/redhat/ including subdirectories or, even better, a way how to easily recreate the file structure I deleted by mistake.
Take a look at the rpm-build package. rpm -ql rpm-build <snip> /usr/src/redhat /usr/src/redhat/BUILD /usr/src/redhat/RPMS /usr/src/redhat/RPMS/athlon /usr/src/redhat/RPMS/i386 /usr/src/redhat/RPMS/i486 /usr/src/redhat/RPMS/i586 /usr/src/redhat/RPMS/i686 /usr/src/redhat/RPMS/noarch /usr/src/redhat/SOURCES /usr/src/redhat/SPECS /usr/src/redhat/SRPMS Here is a one-liner that will recreate these files: for i in `rpm -ql rpm-build | grep redhat/`; do mkdir $i ; done