26ccb Accidentally deleted all contents of /usr/port/sysutil using rm -rf - 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 May 27th, 2009, 01:19
aurora72 aurora72 is offline
Member
 
Join Date: May 2009
Location: Türkiye
Posts: 231
Thanks: 9
Thanked 1 Time in 1 Post
Default Accidentally deleted all contents of /usr/port/sysutil using rm -rf

Late at night while trying to port an application, I have accidentally deleted all contents of /usr/port/sysutil using
rm -rf.

Now, how do I return them back in any way (i.e. reinstalling them thru the FreeBSD 6.3 Installation CD's, or simply recovering them from harddisk)

mount -l gives:
/dev/ad0sle on / (ufs, local)
devfs on /dev (devfs, local)
...
Reply With Quote
  #2  
Old May 27th, 2009, 01:22
DrJ DrJ is offline
Member
 
Join Date: Nov 2008
Posts: 283
Thanks: 1
Thanked 40 Times in 30 Posts
Default

Just update your ports tree using your favorite utility (such as csup or cvsup). The directory will be restored, albeit in updated form.
Reply With Quote
  #3  
Old May 27th, 2009, 02:37
mdg583 mdg583 is offline
Junior Member
 
Join Date: Nov 2008
Location: Vancouver, Canada
Posts: 78
Thanks: 11
Thanked 3 Times in 3 Posts
Default

I am not at my freebsd desktop now, but I used a line like this in my supfile:
*default date=2009.04.28.23.59.59
Maybe you can google it, and set it to about the time of the release, if you really don't want an updated ports tree.
Reply With Quote
  #4  
Old May 27th, 2009, 10:00
pbd pbd is offline
Member
 
Join Date: Nov 2008
Location: Brno, CZ
Posts: 187
Thanks: 9
Thanked 31 Times in 31 Posts
Default

If you want the original ports tree from FreeBSD 6.3, unpack it from CD, or fetch it:

Code:
fetch -o - ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/ports/ports.tgz | tar -z -x -v --include ports/sysutils -f - -C /usr/
You can also update your ports tree, which will "restore" your ports/sysutils - create a supfile as described in
Quote:
/usr/share/examples/cvsup/ports-supfile
and use cvsup as described in
Reply With Quote
  #5  
Old May 27th, 2009, 10:52
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

Or run portsnap:
Code:
portsnap fetch extract
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/
Reply With Quote
  #6  
Old May 27th, 2009, 10:56
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,849
Thanks: 30
Thanked 1,891 Times in 1,335 Posts
Default

Was portsnap already in the 6.3 base system? Don't remember.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #7  
Old May 27th, 2009, 11:17
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

On FreeBSD v6.0 or above, portsnap is contained in the FreeBSD base / core system. You only need to to install portsanp if you are using older version i.e. 5.x
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/
Reply With Quote
  #8  
Old May 27th, 2009, 11:19
pbd pbd is offline
Member
 
Join Date: Nov 2008
Location: Brno, CZ
Posts: 187
Thanks: 9
Thanked 31 Times in 31 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Was portsnap already in the 6.3 base system? Don't remember.
Yes, it is.

Code:
# uname -a
FreeBSD ... 6.3-RELEASE-p10 FreeBSD 6.3-RELEASE-p10 #0: Thu Apr 23 02:58:25 CEST 2009     root@...:/usr/obj/usr/src/sys/KERNEL  i386
# which portsnap 
/usr/sbin/portsnap
Reply With Quote
  #9  
Old May 27th, 2009, 12:21
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

Quote:
Originally Posted by vivek View Post
Or run portsnap:
Code:
portsnap fetch extract
Overbloat, in OP case

Quote:
portsnap extract sysutils
Please next time do RTFM, portsnap(8)
Reply With Quote
  #10  
Old May 27th, 2009, 12:26
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,849
Thanks: 30
Thanked 1,891 Times in 1,335 Posts
Default

Doesn't incorporating a ports 'subtree' into an existing (and seemingly untouched) 6.3 ports tree cause problems with INDEX, versions, dependencies, et al.?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #11  
Old May 27th, 2009, 12:35
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

Well if OP use old ports tree that is another pile of problems .... in this case portsnap just extract one subtree(aka path) instead extracting all tree.
If it doesn't require fetch command I don't see any problems.
Reply With Quote
  #12  
Old May 27th, 2009, 12:47
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,849
Thanks: 30
Thanked 1,891 Times in 1,335 Posts
Default

Ok, aurora72:

- are you using an unaltered 6.3 ports tree as it came off the CD?
-> use the suggestion in post #3 (fetch the 'frozen' 6.3 ports snapshot and extract the sysutils stuff)

- are you using an up-to-date ports tree?
-> use the 'partial portsnap' solution and restore sysutils

- are you unsure at what stage your ports tree is right now?
-> get with the program and use 'portsnap fetch extract' once and 'portsnap fetch update' in the future
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #13  
Old May 27th, 2009, 13:01
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

Quote:
Originally Posted by richardpl View Post
Overbloat, in OP case



Please next time do RTFM, portsnap(8)
It is not a bad idea to make entire tree upto date. OP can update all outdated package. I will take security any day over little spend to perform ports tree (and ports itself) to upgrade

Also, modern hardware and network is pretty powerful to handle any overbloat that cab be caused by 48MB file. If OP is on home computer with crappy internet than only I guess it is overbloat...
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/

Last edited by vivek; May 27th, 2009 at 13:10.
Reply With Quote
  #14  
Old May 27th, 2009, 13:31
aurora72 aurora72 is offline
Member
 
Join Date: May 2009
Location: Türkiye
Posts: 231
Thanks: 9
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by DutchDaemon View Post
Ok, aurora72:

- are you using an unaltered 6.3 ports tree as it came off the CD?
-> use the suggestion in post #3 (fetch the 'frozen' 6.3 ports snapshot and extract the sysutils stuff)

- are you using an up-to-date ports tree?
-> use the 'partial portsnap' solution and restore sysutils

- are you unsure at what stage your ports tree is right now?
-> get with the program and use 'portsnap fetch extract' once and 'portsnap fetch update' in the future
Well, first of all I must say that my FreeBSD computer's got no Internet connection as I'm still trying to make its wireless PCI card work with NDISWrapper.

Also, I have written the FreeBSD version wrong, it must have been 6.4 and not 6.3. (I was sleepy as I wrote it last night) To be exact, the version is 6.4-RELEASE and machine : i386

So now I have 3 Installation CD's of FreeBSD 6.4 which are labeled as CD#1, CD#2 and CD#3, though I haven't used the CD#3 during the installation.

Among the suggestions, the one made by pbd in particular, suggests that I use

Code:
fetch -o - ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/ports/ports.tgz | tar -z -x -v --include ports/sysutils -f - -C /usr/
which I cannot, as it's not connected to Internet.

So which way should I use to reinstall the sysutils from CD?

Thanks.
Reply With Quote
  #15  
Old May 27th, 2009, 13:36
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,849
Thanks: 30
Thanked 1,891 Times in 1,335 Posts
Default

Ok:
Code:
Type:  sysinstall
Choose: Configure
Choose: Distributions
Check: [X] Ports
Select: 1 Install from CD/DVD
Select: your CD/DVD Drive
Take it from there. I don't have CDs here, so I can't look beyond that point.

Once you have an Internet connection, update the ports tree and keep it up-to-date using portsnap(8). Use ports-mgmt/portmaster or ports-mgmt/portupgrade for updating ports (applications).
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
aurora72 (May 27th, 2009)
  #16  
Old May 27th, 2009, 15:28
aurora72 aurora72 is offline
Member
 
Join Date: May 2009
Location: Türkiye
Posts: 231
Thanks: 9
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by DutchDaemon View Post
Code:
Type:  sysinstall
Choose: Configure
Choose: Distributions
Check: [X] Ports
Select: 1 Install from CD/DVD
Select: your CD/DVD Drive
I was browsing the sysinstall documents and that procedure has cut it. It downloaded >40MB of files from the CD#1 and everything's now back in place. Might seem like a rough way of recovering only the "sysutils" but I had no other choice as I'm still a newbie and that's why the suggestions of other friends looked intimitading to me, though they were technically more precise...

I can go on installing the NDISWrapper and the WiFi PCI card now
Reply With Quote
  #17  
Old May 27th, 2009, 15:45
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

This is second time you mentioned NDISWrapper. But NDISWrapper is available only for linux. *BSD use NDISulator aka Project Evil TM
Reply With Quote
The Following User Says Thank You to richardpl For This Useful Post:
aurora72 (May 29th, 2009)
  #18  
Old May 27th, 2009, 21:43
Mel_Flynn Mel_Flynn is offline
Member
 
Join Date: Nov 2008
Location: Drachten, Netherlands
Posts: 379
Thanks: 7
Thanked 74 Times in 57 Posts
Default

Quote:
Originally Posted by richardpl View Post
This is second time you mentioned NDISWrapper. But NDISWrapper is available only for linux. *BSD use NDISulator aka Project Evil TM
That's not so bad. I call ubuntu MS Linux.
(iow: can't we all get along? It really is a wrapper around the NDIS protocol, but the name was taken, hmm?)
__________________
The core concept of freedom is the lack of rules, even those made to "protect freedom".
Reply With Quote
  #19  
Old May 27th, 2009, 23:31
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

Are you serious?
That is same as calling linux freebsd or freebsd linux.

They are doing same thing but in completly different way so it is incorrect to deny existence of any of them.

I'm going for another happy pill now ... please wait
Reply With Quote
  #20  
Old May 28th, 2009, 07:43
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

Quote:
Originally Posted by richardpl View Post
This is second time you mentioned NDISWrapper. But NDISWrapper is available only for linux. *BSD use NDISulator aka Project Evil TM
ndis(4)

I'd call it ndiswrapper too
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #21  
Old May 28th, 2009, 09:00
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

You can call it NWO if you want.
Oh those kids today ...
Reply With Quote
  #22  
Old May 28th, 2009, 22:01
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

. . . just don't call me late for dinner.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
  #23  
Old May 29th, 2009, 23:53
aurora72 aurora72 is offline
Member
 
Join Date: May 2009
Location: Türkiye
Posts: 231
Thanks: 9
Thanked 1 Time in 1 Post
Default

I wouldn't guess that the thread would go on, but anyways that's fine. Well, having come over the problems I had at the start, I gave a little pause and did not attempt to use the WiFi PCI card on my FreeBSD machine for a while but soon I will start working on it.

As for the confusion about the naming of NDIS simulator/wrapper richardpl's correct in emphazising the difference between, because the name "NDISulator" is present on "Setting up network interface cards" section of the FreeBSD manual and no mention of NDISWrapper has been made there.

However, I 'll have to use the NDISWrapper because that's the only one I have up for the task.
(I had downloaded it from http://garr.dl.sourceforge.net/sourc...er-1.54.tar.gz)

But I suspect it will be installed under FreeBSD. Or should I try installing NDISulator instead? But where do I download its source files if there are any? I googled by the terms "NDISulator download" and no download links are returned.

Is NDISulator listed under ports collection? I couldn't find it in a search at FreeBSD Ports Search by the search term "NDISulator"

So, what should I do to install my USR5417 WiFi PCI card (whose .sys & .inf files I have)?

Thanks.
Reply With Quote
  #24  
Old May 30th, 2009, 00:09
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,849
Thanks: 30
Thanked 1,891 Times in 1,335 Posts
Default

apropos ndis
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #25  
Old May 30th, 2009, 00:11
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

Quote:
Originally Posted by aurora72 View Post
I wouldn't guess that the thread would go on, but anyways that's fine. Well, having come over the problems I had at the start, I gave a little pause and did not attempt to use the WiFi PCI card on my FreeBSD machine for a while but soon I will start working on it.

As for the confusion about the naming of NDIS simulator/wrapper richardpl's correct in emphazising the difference between, because the name "NDISulator" is present on "Setting up network interface cards" section of the FreeBSD manual and no mention of NDISWrapper has been made there.

However, I 'll have to use the NDISWrapper because that's the only one I have up for the task.
(I had downloaded it from http://garr.dl.sourceforge.net/sourc...er-1.54.tar.gz)

But I suspect it will be installed under FreeBSD. Or should I try installing NDISulator instead? But where do I download its source files if there are any? I googled by the terms "NDISulator download" and no download links are returned.

Is NDISulator listed under ports collection? I couldn't find it in a search at FreeBSD Ports Search by the search term "NDISulator"

So, what should I do to install my USR5417 WiFi PCI card (whose .sys & .inf files I have)?

Thanks.
RTFM, Everything is explained in Handbook and in ndisgen(8) and ndis(4) you dont need ports if you already have inf and sys files.

NDISwrapper works only and only on Linux ...
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] /usr full janroc General 11 July 8th, 2010 08:13
Accidentally changed disk geometry mamalos System Hardware 0 March 18th, 2009 13:47
[Solved] Accidentally 'chown -R' to /usr/local in jail as root tekkon General 6 March 9th, 2009 23:41
Am I really lost if I've just deleted /var/db/pkg/* by mistake? toomadd Installation and Maintenance of FreeBSD Ports or Packages 3 March 9th, 2009 23:01
[Solved] accidentally run ldconfig without '-m' SaveTheRbtz General 2 January 13th, 2009 09:01


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


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