Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Oct 2018, 07:46
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Program says installed but where is it?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
tcshhead

Joined: 23 Apr 2018
Posts: 3

PostPosted: Mon 23 Apr 2018, 19:36    Post subject:  Program says installed but where is it?
Subject description: Cant find tcsh shell I installed with package manager
 

When I go in the my_applications folder in puppy tcsh is not installed. However the package manager says it is able to uninstall tcsh so I know tcsh is installed. Even though it's installed, the $tcsh command doesn't switch bash to tcsh, and I can't find the folder tcsh was installed in. Where does puppy install programs by default? What folder is puppy installing programs in? I've looked in every damn folder in the system.
Back to top
View user's profile Send private message 
a_salty_dogg


Joined: 15 Dec 2013
Posts: 128

PostPosted: Mon 23 Apr 2018, 19:47    Post subject:  

I've no idea what that is but until somebody knowledgeable comes along, "usr/lib" or "opt" are good places to start looking for programs, or see if a link to it has been created in "usr/share/aplications", which you can hover over to see where the executable file is located or click on it to execute.
Good luck.

Edit - or "usr/local/lib" is another possibilty

You've tried via Menu > filesystem > Pfind?
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11143
Location: Charleston S.C. USA

PostPosted: Mon 23 Apr 2018, 20:08    Post subject:  

What version of Puppy?

Use Pfind and do a search for tcsh.

In Pfind make sure in Where to search.
Select system files or all files.

The tcsh exec file is in /usr/bin

The way Puppy menus work.
Programs not specifically compiled for Puppy, may or may not make the necessary files for a menu entry. Some are made to just run from console.
the my_applications folder in puppy is a place you have to manually put something into.
Nothing ever installs into it.
Read the readme file in my_applications folder.

Xenialpup64 7.5 tcsh installed using the Puppy Package Manager(PPM)
Runs in a console, but I have no idea how to use it.
capture14400.png
 Description   
 Filesize   193.34 KB
 Viewed   264 Time(s)

capture14400.png


_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked

Last edited by bigpup on Tue 24 Apr 2018, 19:09; edited 2 times in total
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1225

PostPosted: Mon 23 Apr 2018, 20:43    Post subject:  

look under
/root/.packages

for the list of files in the package.
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 854

PostPosted: Mon 23 Apr 2018, 20:45    Post subject:  

from a console type: which tcsh

That will tell you where it is
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12839
Location: Gatineau (Qc), Canada

PostPosted: Mon 23 Apr 2018, 20:50    Post subject:  

Type
Code:
whereis yourprogram
or
Code:
which yourprogram

_________________
musher0
~~~~~~~~~~
Fidèle elle commença, ainsi elle restera. (Prov. canadien) /
Faithful she began, so will she stay. (Canadian prov.)
Back to top
View user's profile Send private message 
tcshhead

Joined: 23 Apr 2018
Posts: 3

PostPosted: Mon 23 Apr 2018, 21:55    Post subject:  

Thank you all for your help, I am not well versed in Unix like operating systems but I am learning Linux and Mac OS X at the moment because Windows started making me physically ill
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1225

PostPosted: Mon 23 Apr 2018, 22:06    Post subject:  

More suggestions:

Try:

Code:

find / -name '*tcsh*'


Regarding my above suggetion of looking in

Quote:

~/.packages


be sure to click on the eye in your file manager (i.e. rox) so that you can see the hidden files. Filenames that start with '.' are hidden.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12839
Location: Gatineau (Qc), Canada

PostPosted: Mon 23 Apr 2018, 23:41    Post subject:  

Hi, tcshhead.

If you know for a fact that the file is an Linux executable (and tcsh is),
then this one-liner, based on the execs $PATH and the tree utility, should
find it (in addition to the which utility, etc.):
Code:
A=tcsh;echo $PATH | tr ":" "\n" | while read line;do tree -fi $line -L 3 | grep $A;done
Summary:
    You define your search term in A=something.
    Then "echo" feeds,
    via tr,
    all the directories for executables in $PATH
    to tree,
    and grep filters the results on your search term.
Advantages:
    it's fast;
    it covers a lot of ground;
    but the list of results remains easily readable.

Example with "play", a component of the SoundExchange ("SoX") suite:
Code:
A=play;echo $PATH | tr ":" "\n" | while read line;do tree -fi $line -L 3 | grep $A;done
Quote:
/usr/bin/aplay
/usr/bin/aplaymidi
/usr/bin/arecord -> aplay
/usr/bin/cdda-player
/usr/bin/ffplay
/usr/bin/flash-player-properties
/usr/bin/madplay
/usr/bin/mkplaylist
/usr/bin/pitchplay
/usr/bin/play -> sox
/usr/bin/play_cell
/usr/bin/sndfile-play
/usr/bin/sudoreplay
/usr/local/bin/bdplayback_aacs
/usr/local/bin/defaultaudioplayer
/usr/local/bin/defaultcdplayer
/usr/local/bin/defaultmediaplayer
/usr/local/bin/wavplay
/usr/local/bin/wavrec -> wavplay
/opt/local/bin/playsound
/opt/local/bin/playsound_simple
/root/my-applications/bin/playsound
/root/my-applications/bin/playsound_simple

If your Puppy does not have the tree utility by default, you can get a copy here.

IHTH

~~~~~~~~~~~~~
P.S. (for completeness) -- You can use a similar line to search for
libraries, using $LD_LIBRARY_PATH. Example with cairo.so:
Code:
A=cairo.so;echo $LD_LIBRARY_PATH | tr ":" "\n" | while read line;do tree -fi $line -L 3 | grep $A;done
Quote:
/usr/lib/libcairo.so -> libcairo.so.2.11400.6
/usr/lib/libcairo.so.2 -> libcairo.so.2.11400.6
/usr/lib/libcairo.so.2.11400.6

~~~~~~~~~~~~~
Note -- Those lines will not catch any exec or library installed in /opt
(e.g. /opt/palemoon/palemoon) or underneath /usr/lib itself (e.g.
/usr/lib/firefox/firefox).

_________________
musher0
~~~~~~~~~~
Fidèle elle commença, ainsi elle restera. (Prov. canadien) /
Faithful she began, so will she stay. (Canadian prov.)
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1225

PostPosted: Tue 24 Apr 2018, 00:30    Post subject:  

musher0 wrote:
Hi, tcshhead.

...
Code:
A=play;echo $PATH | tr ":" "\n" | while read line;do tree -fi $line -L 3 | grep $A;done




That's a cool solution but if it is in the executable search path, as far as I now "which" should find it. Maybe it is somewhere else like under /opt.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1663
Location: Japan

PostPosted: Tue 24 Apr 2018, 02:17    Post subject: Re: Program says installed but where is it?
Subject description: Cant find tcsh shell I installed with package manager
 

tcshhead wrote:
Where does puppy install programs by default?
There is no default. And there is no "puppy" either. Every creator of a package is free to select (almost) any directory he pleases to install an app though conventions and practical considerations will limit the choice to only a few locations.

Still there is no guarantee that the executable is installed in a $PATH location, in which case the commands type or which would not find it. There is even no guarantee that the package contains an executable with the same name as the package which will leave you completely in the dark what to look for.

Every package you install will create a file in directory /root/.packages with name /root/.packages/<packagename>.files.
This is a text file and contains the names and paths of all files installed by this particular package. If you examine this file with a text editor you will find what you are looking for.

If you are comfortable with the command line you could use a command like
Code:
grep tcsh$  /root/.packages/*.files


Quote:
I've looked in every damn folder in the system.
Well, in this case you should have found it...

musher0 wrote:
Example with "play", a component of the SoundExchange ("SoX") suite:
Code:
A=play;echo $PATH | tr ":" "\n" | while read line;do tree -fi $line -L 3 | grep $A;done


Another way. Faster, simpler and saves a tree Wink :
Code:
find ${PATH//:/ } -name *play*

Last edited by MochiMoppel on Tue 24 Apr 2018, 02:30; edited 1 time in total
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1225

PostPosted: Tue 24 Apr 2018, 02:29    Post subject: Re: Program says installed but where is it?
Subject description: Cant find tcsh shell I installed with package manager
 

MochiMoppel wrote:

musher0 wrote:
Example with "play", a component of the SoundExchange ("SoX") suite:
Code:
A=play;echo $PATH | tr ":" "\n" | while read line;do tree -fi $line -L 3 | grep $A;done


Another way. Faster, simpler and saves a tree Wink :
Code:
find ${PATH//:/ } -name *play*


An earth day pun Very Happy
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12839
Location: Gatineau (Qc), Canada

PostPosted: Tue 24 Apr 2018, 04:05    Post subject:  

Ah, but my one-liner awakened the competitor instinct in MochiMoppei.
I should be getting thanks. (Absent tongue-in-cheek icon goes here.) Laughing

Using bash's sub-string substitution is so passé, BTW. Laughing

_________________
musher0
~~~~~~~~~~
Fidèle elle commença, ainsi elle restera. (Prov. canadien) /
Faithful she began, so will she stay. (Canadian prov.)
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 918
Location: Staffordshire

PostPosted: Tue 24 Apr 2018, 07:39    Post subject:  

The simplest method is probably just to try uninstalling it, then installing it again. It's not working for whatever reason, so nothing to lose.
Back to top
View user's profile Send private message 
tcshhead

Joined: 23 Apr 2018
Posts: 3

PostPosted: Tue 24 Apr 2018, 19:01    Post subject: found tcsh  

So I see tcsh is installed in the sbin folder. So I understand how to navigate to that directory in bash but I don't understand how to run tcsh. What is the command to run tcsh? I am running 64 bit Slackware Puppy btw.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1038s ][ Queries: 13 (0.0089s) ][ GZIP on ]