26ccb
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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) ... |
|
#2
|
|||
|
|||
|
Just update your ports tree using your favorite utility (such as csup or cvsup). The directory will be restored, albeit in updated form.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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/ Quote:
|
|
#5
|
||||
|
||||
|
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/ |
|
#6
|
||||
|
||||
|
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. <--- |
|
#7
|
||||
|
||||
|
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/ |
|
#8
|
|||
|
|||
|
Quote:
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 |
|
#9
|
|||
|
|||
|
|
|
#10
|
||||
|
||||
|
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. <--- |
|
#11
|
|||
|
|||
|
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. |
|
#12
|
||||
|
||||
|
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. <--- |
|
#13
|
||||
|
||||
|
Quote:
![]() 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. |
|
#14
|
|||
|
|||
|
Quote:
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/ So which way should I use to reinstall the sysutils from CD? Thanks. |
|
#15
|
||||
|
||||
|
Ok:
Code:
Type:
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. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
aurora72 (May 27th, 2009) | ||
|
#16
|
|||
|
|||
|
Quote:
I can go on installing the NDISWrapper and the WiFi PCI card now
|
|
#17
|
|||
|
|||
|
This is second time you mentioned NDISWrapper. But NDISWrapper is available only for linux. *BSD use NDISulator aka Project Evil TM
|
| The Following User Says Thank You to richardpl For This Useful Post: | ||
aurora72 (May 29th, 2009) | ||
|
#18
|
|||
|
|||
|
Quote:
(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". |
|
#19
|
|||
|
|||
|
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
|
|
#20
|
||||
|
||||
|
Quote:
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. |
|
#21
|
|||
|
|||
|
You can call it NWO if you want.
Oh those kids today ... |
|
#22
|
||||
|
||||
|
. . . just don't call me late for dinner.
__________________
Quid habemus reliquum? Nutrimentum anatum! Внимание: лифт вниз не поднимает |
|
#23
|
|||
|
|||
|
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. |
|
#24
|
||||
|
||||
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. <--- |
|
#25
|
|||
|
|||
|
Quote:
NDISwrapper works only and only on Linux ... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |