LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Program installed, now can't locate or start it (https://www.linuxquestions.org/questions/linux-newbie-8/program-installed-now-cant-locate-or-start-it-269869/)

rollo 12-24-2004 05:51 AM

Program installed, now can't locate or start it
 
I think I installed 'wget' (an FTP-like program which runs in the background) using an .rpm. At least, I must have because I get the "already installed" message if I try to re-install it.

Now how do I invoke the program? The command "wget" is not recognised, nothing is listed in the Runlevel Editor, can't find anything that looks like a binary on the hard drive.

What should I do next?

Thanks.

MasterC 12-24-2004 06:03 AM

Runlevel Editor?

Try launching it from a terminal or checking the man page:
man wget
To see what you get, then post the results. wget is much much much more than "an FTP-like application".

Cool

rollo 12-24-2004 03:03 PM

"no manual entry"
 
Results of man wget -
Code:

No manual entry for wget
When I try running the .rpm I get -
Code:

package wget-1.9.1-45 is already installed
I did try to install it (or perhaps another version) before but ran into dependency problems and gave up. Any idea how to untangle this?

I would love to discover what a great program wget is!

Thanks...

whjones 12-24-2004 06:24 PM

You need to clarify your termnology. The output you posted after you tried to "run'" the program looks as if you tried to reinstall the program. You can try:

rpm -qa | grep wget

to see the version you installed (without trying to reinstall it again). Alternatively, you can try:

locate wget

to see all the files with 'wget' in the filename. It will probably be somewhere like /usr/bin or /usr/local/bin. Of course, to get the most accurate results from the locate command, you'll have to switch user to root, then issue the 'updatedb' command, which will take a couple of minutes.

That being said, you should be able to simply enter 'wget' at a commant prompt to run the program. I would add an '&' after the command however (like 'wget &'), as the ampersand makes the process run in the background - you can then use the command tool/terminal for other tasks.

William Jones

minm 12-24-2004 06:58 PM

Make sure you do 'updatedb' as root then locate whatever program you are looking for then run it :)

Good luck

deWin 12-24-2004 07:17 PM

Try "which wget", it gives me the location "/usr/bin/wget"

rollo 12-24-2004 07:25 PM

Entering 'locate wget' produces a 'command not found', but a search thru KDE turns up no binaries with 'wget' in their name.

Entering 'rpm -qa | grep wget' produces:

Code:

wget-1.9.1-45
As I said in my first post, entering the command 'wget' produces:

Code:

bash: wget: command not found
Quote:

You need to clarify your termnology. The output you posted after you tried to "run'" the program looks as if you tried to reinstall the program.
I said I ran the .rpm - using the command 'rpm'. I would love to run the program but it doesn't seem to exist, even though the system thinks it does.

More ideas much appreciated...

rollo 12-24-2004 07:30 PM

'which wget' returns absolutely nothing, bizarrely. Just the command prompt on a new line.

minm 12-25-2004 02:29 AM

rollo, make sure you install the locate tools to use the locate command.

you also have to make sure that the RPM you are installing is for your current distro.

Once you do that, as i said, go into root and type updatedb
now close that terminal window and open a new one, then locate wget as a normal user

this SHOULD work

whipermr5 12-25-2004 02:38 AM

Try installing the .rpm you were trying to install originally, with the --force switch. That should uninstall the previous wget that it thinks is installed and install the new one

rollo 12-25-2004 12:38 PM

locate etc
 
Quote:

Try installing the .rpm you were trying to install originally, with the --force switch.
Code:

rpm: only installation, upgrading, rmsource and rmspec may be forced
Quote:

rollo, make sure you install the locate tools to use the locate command.
Any idea how to install these? It's always the simplest tasks which are the hardest - I can't find any clues googling this one...

minm 12-25-2004 04:26 PM

It's very easy.

In the Yast manager, go into software, then installation. Once there, search 'locate' and check the locate tools, once that's done do the steps i recommended :)

Good luck

rollo 12-25-2004 06:29 PM

Thanks minm.

Installed locate, ran updatedb, then ran 'locate wget'. This produced:

Code:

locate: /var/lib/locatedb: No such file or directory
:confused:

minm 12-25-2004 06:31 PM

remember to close the terminal you did updatedb in and open a new one and run it in your user account not su

dizzutch 12-25-2004 06:58 PM

what's your path?
Code:

echo $PATH
you're probably logged in as root with su, but didn't do su - so your path is screwed up
try it as a regular user

rollo 12-25-2004 07:00 PM

Yep, did that. Anyway, a reboot solved it. Here's the output at last...

/etc/wgetrc
/home/rollo/installs/wget-1.8.2-310.i586.rpm
/home/rollo/installs/wget-1.9.1-0.gbv.1.i586.rpm
/home/rollo/installs/wget-1.9.1-45.i586.rpm
/opt/kde3/share/doc/HTML/en/quanta/project-use-wget.png
/opt/kde3/share/services/useragentstrings/wgetoncurrent.desktop
/usr/lib/perl5/5.8.3/newgetopt.pl
/usr/sbin/iwgetid
/usr/share/doc/packages/wget
/usr/share/doc/packages/wget/AUTHORS
/usr/share/doc/packages/wget/COPYING
/usr/share/doc/packages/wget/MAILING-LIST
/usr/share/doc/packages/wget/NEWS
/usr/share/doc/packages/wget/PATCHES
/usr/share/doc/packages/wget/README
/usr/share/doc/packages/wget/README.cvs
/usr/share/doc/packages/wget/rmold.pl
/usr/share/doc/packages/wget/sample.wgetrc
/usr/share/doc/packages/wget/TODO
/usr/share/doc/packages/wget/wget_10.html
/usr/share/doc/packages/wget/wget_11.html
/usr/share/doc/packages/wget/wget_12.html
/usr/share/doc/packages/wget/wget_1.html
/usr/share/doc/packages/wget/wget_2.html
/usr/share/doc/packages/wget/wget_3.html
/usr/share/doc/packages/wget/wget_4.html
/usr/share/doc/packages/wget/wget_5.html
/usr/share/doc/packages/wget/wget_6.html
/usr/share/doc/packages/wget/wget_7.html
/usr/share/doc/packages/wget/wget_8.html
/usr/share/doc/packages/wget/wget_9.html
/usr/share/doc/packages/wget/wget_abt.html
/usr/share/doc/packages/wget/wget_fot.html
/usr/share/doc/packages/wget/wget.html
/usr/share/doc/packages/wget/wget_ovr.html
/usr/share/doc/packages/wget/wget_toc.html
/usr/share/locale/bg/LC_MESSAGES/wget.mo
/usr/share/locale/ca/LC_MESSAGES/wget.mo
/usr/share/locale/cs/LC_MESSAGES/wget.mo
/usr/share/locale/da/LC_MESSAGES/wget.mo
/usr/share/locale/de/LC_MESSAGES/wget.mo
/usr/share/locale/el/LC_MESSAGES/wget.mo
/usr/share/locale/es/LC_MESSAGES/wget.mo
/usr/share/locale/et/LC_MESSAGES/wget.mo
/usr/share/locale/fr/LC_MESSAGES/wget.mo
/usr/share/locale/gl/LC_MESSAGES/wget.mo
/usr/share/locale/he/LC_MESSAGES/wget.mo
/usr/share/locale/hr/LC_MESSAGES/wget.mo
/usr/share/locale/hu/LC_MESSAGES/wget.mo
/usr/share/locale/it/LC_MESSAGES/wget.mo
/usr/share/locale/ja/LC_MESSAGES/wget.mo
/usr/share/locale/nl/LC_MESSAGES/wget.mo
/usr/share/locale/no/LC_MESSAGES/wget.mo
/usr/share/locale/pl/LC_MESSAGES/wget.mo
/usr/share/locale/pt_BR/LC_MESSAGES/wget.mo
/usr/share/locale/ro/LC_MESSAGES/wget.mo
/usr/share/locale/ru/LC_MESSAGES/wget.mo
/usr/share/locale/sk/LC_MESSAGES/wget.mo
/usr/share/locale/sl/LC_MESSAGES/wget.mo
/usr/share/locale/sv/LC_MESSAGES/wget.mo
/usr/share/locale/tr/LC_MESSAGES/wget.mo
/usr/share/locale/uk/LC_MESSAGES/wget.mo
/usr/share/locale/zh_CN/LC_MESSAGES/wget.mo
/usr/share/locale/zh_TW/LC_MESSAGES/wget.mo
/usr/share/man/man8/iwgetid.8.gz
/usr/share/susehelp/meta/Manuals/Productivity/wget.desktop
/usr/share/vim/vim62/syntax/wget.vim
/usr/share/YaST2/scrconf/root_wgetrc.scr
/usr/share/zsh/4.2.0/functions/_wget


(The second of the .rpm's listed I definitely didn't try to install.)

minm 12-25-2004 07:19 PM

hmm, I don't think it installed right
Try installing the file (/home/rollo/installs/wget-1.9.1-45.i586.rpm) again..

rollo 12-25-2004 08:26 PM

'rpm -ivh wget-1.9.1-45.i586.rpm' produces:

Code:

package wget-1.9.1-45 is already installed
(This is essentially the problem of this thread.)

'echo $PATH' produces:

/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin

adamwenner 12-25-2004 08:33 PM

idk about slack, and i dont know if this has already been said, but it seems like this can be done in 2 easy steps

find / -name wget

then find an entry that ends in wget and is most likely in some form of bin directory

then do

ln -s /bin/wget /path/to/wget

then run wget and it should run

--adam

rollo 12-25-2004 09:57 PM

Thanks for that, but the problem hasn't changed - the system claims 'wget' is installed but there is no binary.

'find' / 'locate' commands turn up nothing that could be a binary except this:

/usr/sbin/iwgetid

Anyone any more ideas?

whipermr5 12-26-2004 01:27 AM

Yes, try running as root.

rollo 12-28-2004 11:36 AM

Code:

linux:/home/rollo # find / -name wget
/usr/share/doc/packages/wget
find: /media/cdrom: No medium found
linux:/home/rollo #

See, nothing.

So I guess my rephrased problem is, how do I uninstall install this program (which isn't really installed) so that I can then install it with the .rpm and not get this error message:

Code:

package wget-1.9.1-45 is already installed

whipermr5 12-28-2004 09:16 PM

OK, you can uninstall it with
Code:

rpm -e packagename.rpm
, but first I'll try installing wget with
Code:

rpm -Uvh --force wget.<whatever>.rpm
. Try with --force first, if it does not work, use the -e.

rollo 12-29-2004 07:09 PM

Solved
 
Cheers whiperm5

This time the --force switch worked. Must have been the -Uvh switch which made the difference - thanks.

wget now installed correctly at last.

whipermr5 12-29-2004 09:22 PM

No problem :) The Uvh simply means upgrade, verify headers. It also installs things if they aren't installed, so it does not mean an older version must be installed. I think it's the --force that made the diff, not the Uvh.


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