1773a [Solved] how do I know which of the ports installed in my system is using a specific port? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old August 15th, 2012, 10:26
mrjayviper mrjayviper is offline
Junior Member
 
Join Date: Jul 2012
Posts: 22
Thanks: 5
Thanked 0 Times in 0 Posts
Default how do I know which of the ports installed in my system is using a specific port?

I'm trying to compile qBittorrent 3.0 but it encountered an error. It seems I need to delete an installed port first before it can proceed.

I can easily remove it but I want to know which port uses the problem port first before I proceed.

Thanks

Last edited by wblock@; August 19th, 2012 at 04:50.
Reply With Quote
  #2  
Old August 15th, 2012, 10:35
lme@'s Avatar
lme@ lme@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Düsseldorf, Germany
Posts: 589
Thanks: 44
Thanked 181 Times in 90 Posts
Default

# pkg_info -R $portname
Reply With Quote
The Following 2 Users Say Thank You to lme@ For This Useful Post:
mrjayviper (August 15th, 2012), OJ (August 16th, 2012)
  #3  
Old August 15th, 2012, 11:25
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

You can easily get a list of installed ports/packages:
pkg_version -vI | less
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
mrjayviper (August 15th, 2012)
  #4  
Old August 15th, 2012, 11:54
mrjayviper mrjayviper is offline
Junior Member
 
Join Date: Jul 2012
Posts: 22
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Thanks! ☺☺
Reply With Quote
  #5  
Old August 15th, 2012, 17:41
setevoy's Avatar
setevoy setevoy is offline
Junior Member
 
Join Date: Dec 2011
Location: UA, Kiev
Posts: 43
Thanks: 8
Thanked 4 Times in 4 Posts
Default

And may be pkg_tree(7) ? Need install first.
Reply With Quote
The Following User Says Thank You to setevoy For This Useful Post:
OJ (August 16th, 2012)
  #6  
Old August 16th, 2012, 11:03
OJ OJ is offline
Member
 
Join Date: Dec 2009
Location: Coalmont BC, Canada
Posts: 207
Thanks: 25
Thanked 10 Times in 9 Posts
Default

I'm interested in these answers as well, but seem to have a problem.

Code:
# pkg_tree
works. As does
Code:
# pkg_info -R $portname
when used with the full version numbers.

However,
Code:
pkg_version -vI | less
returns
Code:
pkg_version: Unable to open /usr/ports/INDEX-9 in pkg_do.
What am I missing?
Reply With Quote
  #7  
Old August 16th, 2012, 11:05
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

You don't seem to have an INDEX-9 file:
Code:
dice@molly:~> ll /usr/ports/INDEX-9 
-rw-r--r--  1 root  wheel  26819160 Aug  8 15:03 /usr/ports/INDEX-9
How do you update your ports tree? That file should be there.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #8  
Old August 17th, 2012, 00:38
OJ OJ is offline
Member
 
Join Date: Dec 2009
Location: Coalmont BC, Canada
Posts: 207
Thanks: 25
Thanked 10 Times in 9 Posts
Default

Quote:
Originally Posted by SirDice View Post
You don't seem to have an INDEX-9 file:
Code:
dice@molly:~> ll /usr/ports/INDEX-9 
-rw-r--r--  1 root  wheel  26819160 Aug  8 15:03 /usr/ports/INDEX-9
How do you update your ports tree? That file should be there.
Thanks for the explanation. It's a (relatively) fresh install, and I haven't updated anything yet. I'll start another thread about that if I run into problems, but there seems to be good information posted on it.
Reply With Quote
  #9  
Old August 17th, 2012, 10:13
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

If you already have a good ports tree but you're missing the INDEX-* file you can either fetch it or create it. The latter is recommended as that will create an INDEX from your current ports tree.

# cd /usr/ports && make fetchindex
# cd /usr/ports && make index
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
OJ (August 17th, 2012)
  #10  
Old August 17th, 2012, 11:23
OJ OJ is offline
Member
 
Join Date: Dec 2009
Location: Coalmont BC, Canada
Posts: 207
Thanks: 25
Thanked 10 Times in 9 Posts
Default

Thanks SirDice. That worked and I can now execute the pkg_version(1) command you recommended. It had me worried though, because it took quite a long time to generate the index.

Last edited by SirDice; August 17th, 2012 at 12:28. Reason: Use [man] tags: http://forums.freebsd.org/misc.php?do=bbcode#man
Reply With Quote
  #11  
Old August 17th, 2012, 11:56
kpa kpa is online now
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,016
Thanks: 44
Thanked 467 Times in 397 Posts
Default

Creating the INDEX takes a long time, you might want to stick to portsnap(8) that can fetch prebuilt descriptions for the ports and build the INDEX -files very quickly.

First time use:
# portsnap fetch extract

And from that on:
# portsnap fetch update
Reply With Quote
  #12  
Old August 17th, 2012, 12:27
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Yes, portsnap(8) should fetch the INDEX. That's why I asked how you update your ports tree

I csup(1) mine so I always build my own. And yes, it takes a bit of time.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #13  
Old August 18th, 2012, 23:16
dougb@ dougb@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Location: Los Angeles, California, USA
Posts: 28
Thanks: 0
Thanked 9 Times in 6 Posts
Default

Quote:
Originally Posted by mrjayviper View Post
I'm trying to compile qBittorrent 3.0 but it encountered an error. It seems I need to delete an installed port first before it can proceed.
Nice to hear that someone is actually using qbittorrent.

Were you able to resolve your installation problem?
Reply With Quote
  #14  
Old August 19th, 2012, 01:35
mrjayviper mrjayviper is offline
Junior Member
 
Join Date: Jul 2012
Posts: 22
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Oh yes. Sorry! Please close as resolved. ☺☺
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] portmaster -a loops forever on specific port klaus Installation and Maintenance of FreeBSD Ports or Packages 6 June 16th, 2012 09:09
[Solved] Backing up system configurations and installed ports? draco003 General 6 September 25th, 2011 22:11
unable to access site with specific port lezde716 Web & Network Services 3 September 10th, 2011 06:09
AIX: Which Application is Using a Specific Port vermaden Howtos & FAQs (Moderated) 3 June 10th, 2011 05:22
ventrilo-srv onestart with specific port kondziq Web & Network Services 0 September 5th, 2010 17:40


All times are GMT +1. The time now is 20:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0