4c00 The FreeBSD Forums - View Single Post - [Solved] Open/Libre Office installation
View Single Post
  #6  
Old October 24th, 2010, 03:40
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,720
Thanks: 215
Thanked 142 Times in 88 Posts
Default

Quote:
I'm not that familiar with FreeBSD and have to search for answers on almost everything.
Some useful tips to help you start.
Search for a port
Code:
cd /usr/ports
make search name=the pkg you want
or
Code:
whereis the pkg you want
The second command is not needed to run it into /usr/ports.
Flags for a port (for example amsn) If "nothing to configure" that means that have no flags
Code:
cd /usr/ports/net-im/amsn
make config
Install a port (for example amsn)
Code:
cd /usr/ports/net-im/amsn
make install clean
ALWAYS run make clean to remove work folder before build it again!
or
Code:
pkg_add -r amsn
Remove a package (for example amsn)
Code:
cd /usr/ports/net-im/amsn
make deinstall clean
or
Code:
pkg_delete -f
and the exactly output of command
Code:
pkg_info | grep amsn
Remove everything related on amsn
Code:
pkg_delete -xfri amsn
-x tells it to search for any packages with "amsn" in the name
-f tells it to forcibly remove the package, even if there are other packages that depend on it
-r tells it to remove dependent packages as well
-i tells it to ask you whether or not to remove the package, before actually removing it, in case there are some you want to keep
(From Phoenix post)
Update your ports tree
Code:
portsnap fetch update
Install the updates
Code:
portmaster -a
Install specific updates (not all)
Code:
portmaster -ai
Clean your ports tree and useless distfiles
Code:
portsclean -CDD
Copy a folder
Code:
cp -R folder (and not folder/)
On BSD folder from folder/ is different
Find a package if is intalled on your system
Code:
pkg_info | grep the package you want to search
Load a module (for example linux)
Code:
kldload linux
Unload a module
Code:
kldunload linux
Update your system
Code:
freebsd-update fetch
Install updates
Code:
freebsd-update install
Upgrade your system
Code:
freebsd-update upgrade -r 8.1-RELEASE
Fix missing dependencies.
Notice: You must install portupgrade tool from ports first. Pkgdb is part of this tool.
Code:
pkgdb -F
I think this is the basics commands to save you from searching hours on google to find the right answer
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416

Last edited by sk8harddiefast; October 25th, 2010 at 00:48.
Reply With Quote
The Following 2 Users Say Thank You to sk8harddiefast For This Useful Post:
OJ (October 24th, 2010), talfiq (March 30th, 2011)
 
0