From: Rahul on
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
From: Dan Espen on
Rahul <nospam(a)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.
From: J.O. Aho on
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
From: Nico Kadel-Garcia on
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.
From: Allen Kistler on
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.