LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2002, 01:44 PM   #1
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Rep: Reputation: 0
Need help, RH 7.3 up2date not working...


Hi,

I just installed RedHat Linux 7.3 on my server that I'm setting up and I wanted to run the up2date utility, but when I try to run it, I get a message which says 'command not found'.

I need help. Where do I start?

David
 
Old 12-12-2002, 02:14 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Run up2date as root.
 
Old 12-12-2002, 02:16 PM   #3
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
I'm running it as 'root' already. So what else could it be?

David
 
Old 12-12-2002, 02:25 PM   #4
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
you've probably already tried rpm -q -i -d up2date

you've probably already tried rpm -q -i -d up2date
 
Old 12-12-2002, 02:26 PM   #5
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Well, I haven't so let me try it now...

[UPDATE]
OK, I just tried that command... and it listed a summary of the up2date command version, install date, etc. I'm sure you already know.

Now that we know it's installed, any ideas on why it won't run when I type in the command?

David

Last edited by DaveNET; 12-12-2002 at 02:40 PM.
 
Old 12-12-2002, 04:06 PM   #6
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
I edited my last post, so the email notification probably didn't get sent out, so just replying to trigger it.

David
 
Old 12-12-2002, 05:19 PM   #7
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
curious. i really don't have an answer.
if there are no other suggestions, i would try

updatedb
rpm -V up2date (verify the package AND dependencies--probably should have tried this first)

if these don't generate error messages, i don't know what to suggest other than to download the most up-to-date package and

rpm -Uvh up2date (if you already have the most up-to-date package, the rpm --force up2date )
 
Old 12-12-2002, 05:31 PM   #8
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
I've tried the first two steps suggested in the last post without resolving the problem. I will do the last suggestion soon, but am going to be away from my computer till tomorrow.

If anyone else has any thoughts or suggestions, please post them.

Thanks,

David
 
Old 12-12-2002, 06:36 PM   #9
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Ummm... Upgrade to RedHat 8?? :P

rpm -ql up2date will produce the listing of all the files that were installed from that package. You should eventually get to the up2date binary and see where it's hiding (if it is at all installed).

You can also try whereis up2date and see if that finds your binary for you.

To be 100% safe, however, I would go on RPMFind (or check out the RedHat 7.3 CDs) and reinstall every single rhn (RedHat Network) and up2date package there is. Probably something is screwed up...
 
Old 12-12-2002, 06:47 PM   #10
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
I can't upgrade to RH 8 as the Plesk package does not support that. I'll try your other suggestions though.

David
 
Old 12-12-2002, 10:30 PM   #11
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
this answer can't be right

but nothing else is working and it can't do any hurt. it shouldn't matter but have you tried absolute file path?
/usr/bin/up2date

i just reread your first post and the "command not found" error message just registered with me. if you still get the same error message then try to find the correct path to the command by typing

find path -name up2date -print

Last edited by rioguia; 12-13-2002 at 09:30 AM.
 
Old 12-13-2002, 12:19 PM   #12
DaveNET
LQ Newbie
 
Registered: Dec 2002
Location: Spokane, WA
Distribution: RedHat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Well, I finally got it to work. The command was located at /usr/sbin/up2date.

It seems that this path is not initialized somehow when the O/S searches for commands. How do I list this path as one of the default paths to search for commands?

David
 
Old 12-13-2002, 01:15 PM   #13
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
someone else can correct me but i think its

setenv PATH /usr/sbin/up2date:$PATH
 
Old 12-13-2002, 01:32 PM   #14
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I don't think you want to specify the command, just the directory it's in so:

PATH=/usr/sbin:$PATH
export PATH

Add this to .bash_rc to have it persist after reboots.

Last edited by bulliver; 12-13-2002 at 01:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
up2date not working code3hree Red Hat 3 10-05-2005 09:58 AM
up2date not working canyon289 Fedora 3 10-20-2004 10:18 PM
up2date not working einstien Fedora 10 09-20-2004 04:47 PM
up2date not working pirozzi Fedora 3 07-16-2004 12:14 PM
up2date not working..... tinaa Linux - General 1 08-22-2003 09:27 AM


All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration