BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 28th, 2005, 04:48 AM
nbarraud nbarraud is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 12 nbarraud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 23 sec
Reputation Power: 0
Question Deleting orphaned ports

Hello,

Is there a way I can find all orphaned ports on FreeBSD (by using portupgrade or not) ?

By orphaned ports I mean ports that are not used by any other ports (though they may be used by users, in which case it's up to me to decide wether to delete them).

Thank you.

Nicolas

Reply With Quote
  #2  
Old March 1st, 2005, 05:35 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
Have a look at pkg_cutleaves. pkg_cutleaves will show you all ports that have no other dependencies and offer you the choice to remove them.

Isn't this you asking the same question on the freebsd-questions mailing list yesterday?:

http://marc.theaimsgroup.com/?l=fre...58760514632&w=2
Comments on this post
stevengs agrees: simple and accurate!
netytan agrees: very cool. I like!

Reply With Quote
  #3  
Old March 1st, 2005, 07:56 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Exactly

pkg_rmleaves also performs this task, but with a pretty ncurses interface... very nice ,

...but alas, you must know your ports well, for the author has of yet neglected to integrate a view of pkg-descr.

pkg_rmleaves can also be found in /usr/ports/sysutils.


-Steven

Last edited by stevengs : March 2nd, 2005 at 10:15 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Deleting orphaned ports


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway