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 March 6th, 2003, 06:20 PM
Scatt-Neko Scatt-Neko is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: East Hartford, CT
Posts: 65 Scatt-Neko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 59 sec
Reputation Power: 6
Help with cvsup

Hello, I am really new in unix world (and this is my first post in this forum too). I am still playing around (or, you can say, trying to gulp as much knowledge as possible) with my unix box.

I installed FreeBSD 4.7 couple weeks ago. and just now, I tried to learn how to update it with cvsup (without GUI). When it was checking my current freebsd, suddenly it says file system is full. I,then, check how much space I have, and this shows "/dev/ad0s1f 3.0G 2.9G -208.3M 107% /usr".

Well, now... while I tried to track down what's going on, I have another problem in hand. I made a "little" mistake in my cvsupfile. I have "*default prefix=/usr/ncvs" instead of "/src/ncvs".

Now my question is how do I fix them? what am I suppose to do? worst to worst I guess I can do fresh install, but if I can, I want to avoid it. *cries*

Please help... I am a lost little kitten...
__________________
Scatt-Neko

Reply With Quote
  #2  
Old March 6th, 2003, 10:22 PM
ssert ssert is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 17 ssert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 40 sec
Reputation Power: 0
first one, you're out of disk space, either delete some stuff you don't need or get a new/bigger hard disk,

secondly, just edit your cvsupfile using your favourite text editor and make the required changes. also, here is a guide to using cvsup and i'm sure you'll find the handbook very useful.

Reply With Quote
  #3  
Old March 8th, 2003, 10:52 AM
Scatt-Neko Scatt-Neko is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: East Hartford, CT
Posts: 65 Scatt-Neko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 59 sec
Reputation Power: 6
thanks! I somehow manage to solve the problem. I cleaned up my HD using make clean for everything I ever installed.

Another question: how do I uninstall certain things? I installed KDE3 sometimes ago, but then I realize I never use the GUI b/c I always telnet to my unix box. how can I uninstall it?

Thanks!

Reply With Quote
  #4  
Old March 23rd, 2003, 07:05 PM
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
>> Another question: how do I uninstall certain things?
Code:
pkg_delete /var/db/pkg/certain_things-1.1/

will uninstall the 'certain_things-1.1' package.

Alternatively - in the spirit of BSD using Makefiles for almost everything - you can do:
Code:
cd /usr/ports/mail/mutt/
make deinstall

if you've installed mutt and later decide you want to deinstall it. This has the same effect as the above pkg_delete command I believe.

For more information on using 'make' under /usr/ports, have a read of:

/usr/ports/Mk/bsd.port.mk

If you look at the following snippet which is taken from that file, it tells you about the various targets you can specify to 'make' under /usr/ports/ - ie 'make fetch', 'make fetch-list', etc.

A lot of these options are very useful - for example 'make fetch-list' just shows you what files would be downloaded if you ran 'make' on it's own, but without actually building the port.

Here's the snippet:

Code:
# Default targets and their behaviors:
#
# fetch         - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined)
#                 into ${DISTDIR} as necessary.
# fetch-list    - Show list of files that would be retrieved by fetch.
# fetch-recursive - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined),
#                 for port and dependencies into ${DISTDIR} as necessary.
# fetch-recursive-list  - Show list of files that would be retrieved by
#                 fetch-recursive.
# fetch-required-list - Show list of files that would be retrieved by
#                 fetch-required.
# fetch-required - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined),
#                 for port and dependencies that are not already installed
#                 into ${DISTDIR}.
# extract       - Unpacks ${DISTFILES} into ${WRKDIR}.
# patch         - Apply any provided patches to the source.
# configure     - Runs either GNU configure, one or more local configure
#                 scripts or nothing, depending on what's available.
# build         - Actually compile the sources.
# install       - Install the results of a build.
# reinstall     - Install the results of a build, ignoring "already installed"
#                 flag.
# deinstall     - Remove the installation.
# package       - Create a package from an _installed_ port.
# describe      - Try to generate a one-line description for each port for
#                 use in INDEX files and the like.
# checkpatch    - Do a "patch -C" instead of a "patch".  Note that it may
#                 give incorrect results if multiple patches deal with
#                 the same file.
# checksum      - Use distinfo to ensure that your distfiles are valid.
# checksum-recursive - Run checksum in this port and all dependencies.
# makesum       - Generate distinfo (only do this for your own ports!).
# clean         - Remove ${WRKDIR} and other temporary files used for building.
# clean-depends - Do a "make clean" for all dependencies.
#
# Default sequence for "all" is:  fetch checksum extract patch configure build


Regarding cvsup - you can also setup your /etc/make.conf file to include something like:

Code:
SUP_UPDATE=     yes

SUP=            /usr/local/bin/cvsup
SUPFLAGS=       -g -L 2
SUPHOST=        cvsup.uk.FreeBSD.org
SUPFILE=        /etc/supfile-src-stable
PORTSSUPFILE=   /etc/supfile-ports-all
DOCSUPFILE=     /etc/supfile-doc-all


Once you have your supfiles in order, when you execute:
Code:
cd /usr/src/
make update

your system will be updated via cvsup in one go.

A word of warning though you should only really update the /usr/src tree when you intend to rebuild the system using 'make buildworld'.

Most of this is in the handbook anyway:
http://www.freebsd.org/doc/en_US.IS...tting-edge.html

and for cvsup tips:
http://www.freebsd.org/doc/en_US.IS...book/cvsup.html
and
http://www.freebsd.org/doc/en_US.IS...k/cvs-tags.html

Reply With Quote
  #5  
Old March 24th, 2003, 02:02 PM
casteld1973's Avatar
casteld1973 casteld1973 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 26 casteld1973 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Also you may want to check out portupgrade

/usr/ports/sysutils/portupgrade

in short......portupgrade -ra ....very powerful...very wonderful.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Help with cvsup


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