Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > RedHat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-17-2008, 10:12 PM
Rahul
 
Posts: n/a
getting source code for "write" on RHEL / yum

I wanted to custimize the linux command "write" (send messages to tty) by
modifying the source a bit. I'm having a hard time figuring out where the
source lies on my RHEL system.

I normally use the yum install feature. I've been told write is a part of
util-linux and to use up2date --get-source to do this on older systems. Any
ideas what's the best way to do this?



--
Rahul
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:32 AM
Dan Espen
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

Rahul <nospam@nospam.invalid> writes:

> I wanted to custimize the linux command "write" (send messages to tty) by
> modifying the source a bit. I'm having a hard time figuring out where the
> source lies on my RHEL system.
>
> I normally use the yum install feature. I've been told write is a part of
> util-linux and to use up2date --get-source to do this on older systems. Any
> ideas what's the best way to do this?


I don't think yum will do that without a source repository.
Try googling for the filename I gave you and download the RPM.
Then use yum to install the rpm.
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 06:43 PM
J.O. Aho
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

Rahul wrote:
> I wanted to custimize the linux command "write" (send messages to tty) by
> modifying the source a bit. I'm having a hard time figuring out where the
> source lies on my RHEL system.
>
> I normally use the yum install feature. I've been told write is a part of
> util-linux and to use up2date --get-source to do this on older systems. Any
> ideas what's the best way to do this?


I guess you have installed RHEL from an install media like a CD/DVD, you
have source included on the media (if you have all the CDs or the DVD).

You can also use rpmfind.net to search for the RPM, remember to download
the one with "src" in the filename.

It's also possible to download the vanilla source too
ftp://ftp.kernel.org/pub/linux/utils/util-linux/


--

//Aho
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 11:45 PM
Nico Kadel-Garcia
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

J.O. Aho wrote:
> Rahul wrote:
>> I wanted to custimize the linux command "write" (send messages to tty)
>> by modifying the source a bit. I'm having a hard time figuring out
>> where the source lies on my RHEL system.
>>
>> I normally use the yum install feature. I've been told write is a part
>> of util-linux and to use up2date --get-source to do this on older
>> systems. Any ideas what's the best way to do this?

>
> I guess you have installed RHEL from an install media like a CD/DVD, you
> have source included on the media (if you have all the CDs or the DVD).
>
> You can also use rpmfind.net to search for the RPM, remember to download
> the one with "src" in the filename.
>
> It's also possible to download the vanilla source too
> ftp://ftp.kernel.org/pub/linux/utils/util-linux/
>
>


You can also use 'reposync' to mirror the repository locally for speed of
local insallations, and I *believe* that it can include SRPM's as well, though
I've not tested that.
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 07:38 AM
Allen Kistler
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

Rahul wrote:
> I wanted to custimize the linux command "write" (send messages to tty) by
> modifying the source a bit. I'm having a hard time figuring out where the
> source lies on my RHEL system.
>
> I normally use the yum install feature. I've been told write is a part of
> util-linux and to use up2date --get-source to do this on older systems. Any
> ideas what's the best way to do this?
>


Go to ftp://ftp.redhat.com/pub/redhat/linux/enterprise/ and browse from
there, depending upon what version you've got. That's how Centos,
Whitebox, etc., get the sources to build their supportless clones.
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 11:15 AM
Nico Kadel-Garcia
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

Allen Kistler wrote:
> Rahul wrote:
>> I wanted to custimize the linux command "write" (send messages to tty) by
>> modifying the source a bit. I'm having a hard time figuring out where the
>> source lies on my RHEL system.
>>
>> I normally use the yum install feature. I've been told write is a part of
>> util-linux and to use up2date --get-source to do this on older systems. Any
>> ideas what's the best way to do this?
>>

>
> Go to ftp://ftp.redhat.com/pub/redhat/linux/enterprise/ and browse from
> there, depending upon what version you've got. That's how Centos,
> Whitebox, etc., get the sources to build their supportless clones.


Their clones are also fascinating. Like Fedora, they've felt free to add
features (such as the mock build system and the NTFS enabled kernels available
in their yum repositories), and their 'yum' software publishing setup works
considerably better than up2date or up2date-wearing-grandma's-clothing
disguised as the yum-rhn-plugin package in RHEL 5.

That said, the RedHat FTP site is usually wildly overburdened. Look for a
local mirror for better download performance, one that supports 'rsync' rather
than FTP so that you can update a local mirror.
Reply With Quote
  #7 (permalink)  
Old 04-19-2008, 11:58 AM
J.O. Aho
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

Nico Kadel-Garcia wrote:
> Allen Kistler wrote:


>> Go to ftp://ftp.redhat.com/pub/redhat/linux/enterprise/ and browse from
>> there, depending upon what version you've got. That's how Centos,
>> Whitebox, etc., get the sources to build their supportless clones.

>
> Their clones are also fascinating. Like Fedora, they've felt free to add
> features (such as the mock build system and the NTFS enabled kernels
> available in their yum repositories), and their 'yum' software
> publishing setup works considerably better than up2date or
> up2date-wearing-grandma's-clothing disguised as the yum-rhn-plugin
> package in RHEL 5.


Fedora Core ain't a clone of RHEL, but the testing ground for RHEL, so
what is done in FC may appear in RHEL.


--

//Aho
Reply With Quote
  #8 (permalink)  
Old 04-19-2008, 08:12 PM
Nico Kadel-Garcia
 
Posts: n/a
Re: getting source code for "write" on RHEL / yum

J.O. Aho wrote:
> Nico Kadel-Garcia wrote:
>> Allen Kistler wrote:

>
>>> Go to ftp://ftp.redhat.com/pub/redhat/linux/enterprise/ and browse from
>>> there, depending upon what version you've got. That's how Centos,
>>> Whitebox, etc., get the sources to build their supportless clones.

>>
>> Their clones are also fascinating. Like Fedora, they've felt free to
>> add features (such as the mock build system and the NTFS enabled
>> kernels available in their yum repositories), and their 'yum' software
>> publishing setup works considerably better than up2date or
>> up2date-wearing-grandma's-clothing disguised as the yum-rhn-plugin
>> package in RHEL 5.

>
> Fedora Core ain't a clone of RHEL, but the testing ground for RHEL, so
> what is done in FC may appear in RHEL.


Well, yes. They're also not bound by the 'must not commit major upgrades'
requirements of a commercially supported OS. So CentOS 4, for example, had a
published upgrade to PGP 5, and it's freeware supported on top of the existing
infrastructure. And some things from CentOS get ported over to RHEL: take a
look at the timeline and sources of revisions for the DVD installation image
building tool for an example of tools migrating back and forth and improving
in the process.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > RedHat


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:14 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Jap Car Parts | Loans | Loans | Daily free software



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109