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. |
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 |
"no manual entry"
Results of man wget -
Code:
No manual entry for wget Code:
package wget-1.9.1-45 is already installed I would love to discover what a great program wget is! Thanks... |
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 |
Make sure you do 'updatedb' as root then locate whatever program you are looking for then run it :)
Good luck |
Try "which wget", it gives me the location "/usr/bin/wget"
|
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 Code:
bash: wget: command not found Quote:
More ideas much appreciated... |
'which wget' returns absolutely nothing, bizarrely. Just the command prompt on a new line.
|
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 |
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
|
locate etc
Quote:
Code:
rpm: only installation, upgrading, rmsource and rmspec may be forced Quote:
|
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 |
Thanks minm.
Installed locate, ran updatedb, then ran 'locate wget'. This produced: Code:
locate: /var/lib/locatedb: No such file or directory |
remember to close the terminal you did updatedb in and open a new one and run it in your user account not su
|
what's your path?
Code:
echo $PATH try it as a regular user |
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.) |
hmm, I don't think it installed right
Try installing the file (/home/rollo/installs/wget-1.9.1-45.i586.rpm) again.. |
'rpm -ivh wget-1.9.1-45.i586.rpm' produces:
Code:
package wget-1.9.1-45 is already installed 'echo $PATH' produces: /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin |
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 |
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? |
Yes, try running as root.
|
Code:
linux:/home/rollo # find / -name wget 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 |
OK, you can uninstall it with
Code:
rpm -e packagename.rpm Code:
rpm -Uvh --force wget.<whatever>.rpm |
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. |
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. |