LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 11:11 PM   #1
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware 11, 14.1 :: Slackware64 14.1
Posts: 118

Rep: Reputation: 22
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?'
 
Old 05-09-2007, 11:24 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,350

Rep: Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041
"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

Last edited by syg00; 05-09-2007 at 11:27 PM.
 
Old 05-09-2007, 11:31 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
rdx

Probably a path issue. Try locate witch.

Edit: oops, which not witch

Last edited by lazlow; 05-10-2007 at 09:55 AM.
 
Old 05-10-2007, 07:40 AM   #4
cheeseandpenguins
Member
 
Registered: May 2007
Distribution: suse 10.1, fedora 6
Posts: 39

Rep: Reputation: 15
which what ?
 
Old 05-10-2007, 03:13 PM   #5
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware 11, 14.1 :: Slackware64 14.1
Posts: 118

Original Poster
Rep: Reputation: 22
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
 
Old 05-10-2007, 03:30 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
"which" is a command in /usr/bin/ supplied by util-linux. The location is pretty standard.
 
Old 05-10-2007, 05:01 PM   #7
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware 11, 14.1 :: Slackware64 14.1
Posts: 118

Original Poster
Rep: Reputation: 22
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.
 
Old 05-10-2007, 05:18 PM   #8
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
There are actually alternatives to which and there are various reasons to do it one way or the other.
 
Old 05-10-2007, 06:23 PM   #9
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Rep: Reputation: 15
I have slack 11 and which is there, /usr/bin/which
 
Old 05-11-2007, 11:51 AM   #10
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware 11, 14.1 :: Slackware64 14.1
Posts: 118

Original Poster
Rep: Reputation: 22
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."
 
Old 05-11-2007, 01:43 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
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.

Last edited by dive; 05-11-2007 at 01:46 PM.
 
Old 05-11-2007, 04:29 PM   #12
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware 11, 14.1 :: Slackware64 14.1
Posts: 118

Original Poster
Rep: Reputation: 22
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.
 
Old 05-11-2007, 06:20 PM   #13
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
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.

Last edited by dive; 05-11-2007 at 06:23 PM.
 
Old 05-11-2007, 06:29 PM   #14
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
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
 
Old 05-11-2007, 06:53 PM   #15
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware 11, 14.1 :: Slackware64 14.1
Posts: 118

Original Poster
Rep: Reputation: 22
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?
 
  


Reply

Tags
file, missing, slackware11


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration