Error Cannot Create Sourcedir /root/rpmbuild/sources
Contents |
XCTU CellularSolutions Routers Gateways EmbeddedSystems System on Modules Single-Board Computers ConsoleServers SerialServers Serial Device Servers Industrial/Hardened Wireless Serial Servers USB
Cpio Md5 Sum Mismatch
and SerialConnectivity USB Hubs USB over IP Hubs USB over Serial rpm-build Hubs USB Sensors Serial Cards By Family XBee Digi XLR PRO Rabbit AnywhereUSB By Family Digi Connect Tank Digi TransPort ConnectCore View all By Feature ZigBee 802.15.4 900 MHz Wi-Fi By Feature 4G LTE Cellular PCI Compliant View all Services Digi Remote Manager Digi Device Cloud Technical Cold Chain Solutions Wireless Design Services Wireless Design Services Ideation, Definition and Planning Digi Jolt Workshop Product Architecture Rapid Proof-of-Concept Project Planning Development and Test Product Design Antenna Design Software and Firmware RF and Electrical Circuit Design Circuit Board Layout Digi Product Integration Design Review Mechanical Design Certification Certification Assistance Failure Analysis and Mitigation Manufacturing Deployment Manufacturing Test Cloud Services Digi Remote Manager Digi Device Cloud Technical Services Enterprise Support Development Consulting Training Cold Chain Solutions Digi Honeycomb All Services Industries & Customers Energy C&I Metering Demand Response Digital Oil Field Renewable Energy Smart Grid Tank MonitoringIndustrial Precision Agriculture Manufacturing AutomationTransportation Fleet Heavy Machinery Public Transit RailRetail Branch Office Networking Digital Signage and Kiosk Gaming Secure ATMSmart Cities Intelligent Lighting Rail Bus Security Traffic Management Waste & Water ManagementMedical Components for Medical Devices Outpatient Care Devices Enabling wireless robotics aboard the space stationDigi Helps SEPTA Meet Federal PTC RequirementsReduce Maintenance and Energy Costs While Keeping Residents Safe All Stories Knowledge & Resources Documentation Documentation for all Digi products Forum Receive answers from the community Knowledge Base Articles covering common questions White Papers Our latest thinking on M2M Events Training, webinars and industry events Standards and Technologies Hardware and software innovations Projects Gallery Collection of XBee projects
[x] Format For Printing -XML -Clone This Bug -Last Comment First Last Prev Next This bug is not in your last search results. Bug203772 - rpm cannot install .src.rpm due to missing /usr/src/redhat Summary: rpm cannot install .src.rpm due to missing /usr/src/redhat Status: CLOSED NOTABUG Aliases: None Product: Fedora Classification: Fedora Component: rpm (Show other bugs) Sub Component: --- Version: rawhide Hardware: All Linux Priority medium http://www.digi.com/support/forum/22397/error-cannot-create-%25sourcedir-usr-src-redhat-sources Severity medium TargetMilestone: --- TargetRelease: --- Assigned To: Paul Nasrat QA Contact: Mike McLean Docs Contact: URL: Whiteboard: Keywords: Depends On: Blocks: Show dependency tree /graph Reported: 2006-08-23 13:45 EDT by Will Woods Modified: 2007-11-30 17:11 EST (History) CC List: 0 users See Also: Fixed In Version: Doc Type: Bug Fix https://bugzilla.redhat.com/show_bug.cgi?id=203772 Doc Text: Story Points: --- Clone Of: Environment: Last Closed: 2006-08-23 14:29:38 EDT Type: --- Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- oVirt Team: --- RHEL 7.3 requirements from Atomic Host: Cloudforms Team: --- Attachments (Terms of Use) Add an attachment (proposed patch, testcase, etc.) Groups: None (edit) Description Will Woods 2006-08-23 13:45:30 EDT rpm is normally able to install .src.rpm files. However the rpm package does not own /usr/src/redhat - rpm-build does. Without this directory, attempting to install a .src.rpm fails with: error: cannot create %sourcedir /usr/src/redhat/SOURCES Creating /usr/src/redhat allows the .src.rpm to be installed. This bug has been present since FC5. Comment 1 Will Woods 2006-08-23 14:29:38 EDT Solution: install rpm-build. You need this to do anything useful with the contents of the .src.rpm anyway. If you don't want to wait that long, just do: mkdir /usr/src/redhat and try again. Note You need to log in before you can comment o
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower by Red Hat Cloud Computing Back https://access.redhat.com/solutions/56028 Red Hat CloudForms Red Hat OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back http://unix.stackexchange.com/questions/25798/how-to-make-a-src-rpm-unpack-the-source-to-whatever-directory-i-want Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red Hat JBoss Enterprise Application Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red error cannot Hat JBoss Portal Red Hat JBoss Operations Network Red Hat JBoss Developer Studio JBoss Integration and Automation Back Red Hat JBoss Data Virtualization Red Hat JBoss Fuse Red Hat JBoss A-MQ Red Hat JBoss BPM Suite Red Hat JBoss BRMS Mobile Back Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer error cannot create Program Support Get Support Production Support Development Support Product Life Cycle & Update Policies Knowledge Search Documentation Knowledgebase Videos Discussions Ecosystem Browse Certified Solutions Overview Partner Resources Tools Back Red Hat Insights Learn More Red Hat Access Labs Explore Labs Configuration Deployment Troubleshooting Security Additional Tools Red Hat Access plug-ins Red Hat Satellite Certificate Tool Security Back Product Security Center Security Updates Security Advisories Red Hat CVE Database Security Labs Resources Overview Security Blog Security Measurement Severity Ratings Backporting Policies Product Signing (GPG) Keys Community Back Discussions Red Hat Enterprise Linux Red Hat Virtualization Red Hat Satellite Customer Portal Private Groups All Discussions Start a Discussion Blogs Customer Portal Red Hat Product Security Red Hat Access Labs Red Hat Insights All Blogs Events Customer Events Red Hat Summit Stories Red Hat Subscription Benefits You Asked. We Acted. Open Source Communities Subscriptions Downloads Support Cases Account Back Log In Register Red Hat Account Number: Account Details Newsletter and Contact Preferences User Management Account Maintenance My Profile Notifications Help Log Out Language Back English español Deutsch italiano 한국어 français 日本語 português
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to make a src.rpm unpack the source to whatever directory I want? up vote 1 down vote favorite 1 I'm trying to make an rpm that will unpack the source to a custom directory, such as /asdf. When I run it, it always errors out saying "cannot create %sourcedir /usr/src/redhat/SOURCES". Is there something I can put in my .spec file that will make it unpack the source (which is just a .tar.gz file inside the src.rpm) to a custom directory when I do the command "rpm -i xyz.src.rpm"? rhel rpm share|improve this question asked Nov 30 '11 at 17:36 sqenixs 1051211 I found the answer. logiqwest.com/TechnicalPapers/rpmScriptInstall.html provides step-by-step instructions for doing what I was trying to do. –sqenixs Dec 1 '11 at 0:17 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote Yes, you could use -r or --root option of rpm to specify an alternative root path as the top directory. You also can extract the files from rpm with rpm2cpio command. man rpm2cpio. share|improve this answer answered Nov 30 '11 at 18:46 Nikhil Mulley 5,2351540 add a comment| up vote 0 down vote use rpm2cpio to unpack rpm. Or use alien to convert the rpm to other packages (deb, tar...) share|improve this answer edited Nov 30 '11 at 18:39 answered Nov 30 '11 at 18:34 blackhatmario 25629 add a comment| up vote 0 down vote accepted The solution was as simple as calling tar in the spec file and then specifying the path I wanted to untar to. share|improve this answer answered Dec 6 '11 at 2:04 sqenixs 1051211 If it was all about making the spec file with what you intended (than a command line option) then use install section in the spec file to just untar the file to a specific directory. –Nikhil Mulley Dec 6 '11 at 19:04 yes, that's