LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help, RH 7.3 up2date not working... (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-rh-7-3-up2date-not-working-38139/)

DaveNET 12-12-2002 12:44 PM

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

sewer_monkey 12-12-2002 01:14 PM

Run up2date as root.

DaveNET 12-12-2002 01:16 PM

I'm running it as 'root' already. So what else could it be?

David

rioguia 12-12-2002 01:25 PM

you've probably already tried rpm -q -i -d up2date
 
you've probably already tried rpm -q -i -d up2date

DaveNET 12-12-2002 01:26 PM

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

DaveNET 12-12-2002 03:06 PM

I edited my last post, so the email notification probably didn't get sent out, so just replying to trigger it.

David

rioguia 12-12-2002 04:19 PM

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 )

DaveNET 12-12-2002 04:31 PM

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

sewer_monkey 12-12-2002 05:36 PM

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...

DaveNET 12-12-2002 05:47 PM

I can't upgrade to RH 8 as the Plesk package does not support that. I'll try your other suggestions though.

David

rioguia 12-12-2002 09:30 PM

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

DaveNET 12-13-2002 11:19 AM

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

rioguia 12-13-2002 12:15 PM

someone else can correct me but i think its

setenv PATH /usr/sbin/up2date:$PATH

bulliver 12-13-2002 12:32 PM

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.


All times are GMT -5. The time now is 09:32 PM.