|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
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! |
|
#4
|
||||
|
||||
|
>> 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 |
|
#5
|
||||
|
||||
|
Also you may want to check out portupgrade
/usr/ports/sysutils/portupgrade in short......portupgrade -ra ....very powerful...very wonderful. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Help with cvsup |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|