Re: /sbin/init Initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2010-07-10 at 10:43 -0300, Emilio Fernandes wrote:
> Hi all,
> 
> where can i get the source code of /sbin/initrd from fedora 11?
> 

Assuming you're on the system for which you want the source, the RPM
command will tell you which package a file came from (this example is
executed on F13):

$ rpm -qf /sbin/init
upstart-0.6.5-5.fc13.i686

If you add -i you can see some basic information, including the URL of
the upstream site and the license:

$ rpm -qif /sbin/init
Name        : upstart                      Relocations: (not
relocatable)
Version     : 0.6.5                             Vendor: Fedora Project
Release     : 5.fc13                        Build Date: Tue 04 May 2010
04:31:02 PM EDT
Install Date: Sat 03 Jul 2010 11:13:34 PM EDT      Build Host:
x86-01.phx2.fedoraproject.org
Group       : System Environment/Base       Source RPM:
upstart-0.6.5-5.fc13.src.rpm
Size        : 512748                           License: GPLv2 and LGPLv2
+
Signature   : RSA/SHA256, Wed 05 May 2010 02:23:59 AM EDT, Key ID
7edc6ad6e8e40fde
Packager    : Fedora Project
URL         : http://upstart.ubuntu.com
Summary     : An event-driven init system
Description :
Upstart is an event-based replacement for the /sbin/init daemon which
handles starting of tasks and services during boot, stopping them
during shutdown and supervising them while the system is running.

You can use yumdownloader (from the yum-utils package) to grab the
source RPM for a package:

$ yumdownloader --source upstart

This grabs the source RPM (e.g., for F13: upstart-0.6.5-5.fc13.src.rpm).

To work with source RPMS, it's recommended that you install rpmdevtools
and run "rpmdev-setuptree". You can then install (using your regular
account, not root) the source rpm:

$ rpm -i upstart*src.rpm

The files will install into ~/rpmbuild -- look in the SOURCES directory
for the source code and the ~/SPECS directory for the spec file
(packaging).

Hope this helps--

-Chris

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux