LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where did 'which' go? (https://www.linuxquestions.org/questions/linux-software-2/where-did-which-go-552769/)

rdx 05-09-2007 11:11 PM

Where did 'which' go?
 
I am upgrading from kernal 2.2 to 2.4 and I seem to have lost 'which' in the process (We're talking Slackware, BTW). So what program has replaced 'which?'

syg00 05-09-2007 11:24 PM

"which which" returns /usr/bin/which (bash shell script) - Debian derived system, not Slack.
What's your path look like ???.

Edit: forgot to mention; 2.6 kernel

lazlow 05-09-2007 11:31 PM

rdx

Probably a path issue. Try locate witch.

Edit: oops, which not witch

cheeseandpenguins 05-10-2007 07:40 AM

which what ? :scratch:

rdx 05-10-2007 03:13 PM

Quote:

Originally Posted by syg00
"which which" returns /usr/bin/which (bash shell script) - Debian derived system, not Slack.
What's your path look like ???.

Edit: forgot to mention; 2.6 kernel

Yeah, well "which which" returns :

bash: which: command not found

I have seen it as "what" then what became part of SCCS and it became which but it seems to be missing here. Anyway, echo $PATH returns :

/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

jschiwal 05-10-2007 03:30 PM

"which" is a command in /usr/bin/ supplied by util-linux. The location is pretty standard.

rdx 05-10-2007 05:01 PM

Quote:

Originally Posted by jschiwal
"which" is a command in /usr/bin/ supplied by util-linux. The location is pretty standard.

It appears that it got left out of the Slakeware 11 dist. I went back to the site and checked and found it, but not in the 'a' set where it belongs. Anyway I DL'd and installed it. BTW it went into /bin.

exvor 05-10-2007 05:18 PM

There are actually alternatives to which and there are various reasons to do it one way or the other.

pauledwards03 05-10-2007 06:23 PM

I have slack 11 and which is there, /usr/bin/which

rdx 05-11-2007 11:51 AM

Quote:

Originally Posted by pauledwards03
I have slack 11 and which is there, /usr/bin/which

I'm also missing 'file' I just discovered. I got Slack 11 from the Utah.edu mirror and these are missing (and who knows what else). I have been able to go back to the Slack site and find the progs listed and get them but they are not in the 'a' disk set where they belong. Odd. I guess it just proves, "You get what you pay for," or, in this case, "You get which you pay for."

dive 05-11-2007 01:43 PM

Which in Slackware 11.0 was split away from the bin package into its own package (named which ofc). The same happened to 'file'.

When upgrading you should always read the changelog, and, for 11.0 and up, this:
http://slackware.osuosl.org/slackwar..._AND_HINTS.TXT

BTW you would probably get much better response in Slackware forum than software.

rdx 05-11-2007 04:29 PM

Quote:

Originally Posted by dive
Which in Slackware 11.0 was split away from the bin package into its own package (named which ofc). The same happened to 'file'.

When upgrading you should always read the changelog, and, for 11.0 and up, this:
http://slackware.osuosl.org/slackwar..._AND_HINTS.TXT

BTW you would probably get much better response in Slackware forum than software.

Easy for you to say. RTFM! LOL. My sys dies and I'm trying to get it alive again. How many issues, hardware and software involved? Who knows, it's all a blur. Okay, rant finished. I looked at the CHANGES ... file and didn't see what I'm looking for. I was using version 7.1, now I'm at 11.0 (or 11.1, not sure) so I suppose I need to look at all the docs for all the releases between. Not practical. That's why I post the question, so someone who knows can share their knowledge and save me time.

That said, what else is missing? It's (slightly) irritating to find the next missing piece and have to stop what I'm doing and fetch the bogie. And, how does one know whether this is a software issue or a distribution one? By the time one knows all these answers they have no more questions.

dive 05-11-2007 06:20 PM

Quote:

Package Additions Since 11.0:

<snip>
a/file: split from the bin package.
<snip>
a/which: split from the bin package.
etc...
There really are an awful lot of changes between 7.1 and 11/current it might be easier to install from scratch. Otherwise the only way is to keep on what you are doing and solving each problem as it comes.

There are a lot of additions and removals in the Changes and Hints, so have a look in there as each problem occurs and you should find an answer. I have had 11.0 and -current running fine so far, so there really shouldn't be distribution problems, only problems with updating.

lazlow 05-11-2007 06:29 PM

Rdx

I do not use slack, but think about this in the windows world. You have just updated from win95 to vista. Now, would you expect everything to be the same? No, progress occurs. Sometimes I do not understand why certain things are not standard on a new release. But as long as I can add those missed things back in, I am not going to get upset. It also puts a bright star on why we need to keep current. As big a PITA as it is, keeping no more than 1 version out of date prevents a lot of headaches like this.

Good Luck
Lazlow

rdx 05-11-2007 06:53 PM

Quote:

Originally Posted by dive
There really are an awful lot of changes between 7.1 and 11/current it might be easier to install from scratch. Otherwise the only way is to keep on what you are doing and solving each problem as it comes.

There are a lot of additions and removals in the Changes and Hints, so have a look in there as each problem occurs and you should find an answer. I have had 11.0 and -current running fine so far, so there really shouldn't be distribution problems, only problems with updating.

Maybe I said this wrong. I installed Slackware 11 from scratch on a newly formatted HD. The fact that I was previously running Slackware 7.1 on another disk is incidental. My point is that I installed the dist from the mirror and found that I was missing std apps. I am trying to figure out what else I am missing. How now?


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