@SeaHag sorry about causing the confusion. Have killa & Dutch cleaned up my mess? Let me break down what I was saying... and maybe recap a little. I've learned some stuff from this thread as well. So as I understand it, and taken from the manual
Using the Ports Collection, using portsnap to update ports goes a little something like this... (and somebody please correct me if I'm wrong)
This downloads a complete, compressed snapshot of the ports collection into /var/db/portsnap. Do this before running either of the 2 commands below. (portsnap execute or portsnap update)
This will extract the snapshot you downloaded using portsnap fetch into the /usr/ports directory. You should run this the first time you're getting the ports.
After you have your ports tree populated by using the portsnap extract command, run this whenever you want/need to update your ports tree.
fetch and extract in one command. (if you do not have the ports tree installed)
fetch and update in one command. (update after you have the ports tree installed)
Say you're running firefox 2.x, and you have the ports collection on your computer, but it hasn't been updated for a while, and you want the newest version of firefox, you will run this command first to get the updated port for firefox. I would assume that what this really does is gets the newest makefile, pkg-descr, pkg-plist, distinfo files for the ports that have been updated. since the last time you ran this command or the portsnap extract command.
Sorry about my misinformation about needing to run all 3 commands all the time. You could do that (if you wanted), but it would probably take a while & be a pain.
Possible solutions to your problem:
killasmurf86 said:
To restore deleted directories in ports tree run:
Code:
Code:
$ portsnap extract www/opera
for example
replace www/opera with port that you need
This appears to be one solution for what you're looking for.
DutchDaemon's first post looks to be another solution (or 2)...
DutchDaemon said:
...If you want a pristine ports tree, run this:
rm /var/db/portsnap/tag && portsnap fetch extract
This will install a complete ports tree.
If you want to make 'surgical updates' to the ports tree, you can use a command like:
csup -g -L 2 -1 -h cvsup2.uk.FreeBSD.org -i ports/category/port(*) /usr/share/examples/cvsup/ports-supfile
(*) e.g. ports/www/apache22
This will restore that single port's directory (Makefile, pkg-descr, pkg-plist, and such)...
Sorry for my long-windedness (is that even a word?), I thought this post might be helpful in pulling all the information in the thread together.
Edit: updated as per killasmurf86's correction