Overwrite FreeBSD ports

Upgrade ports is easy, using portupgrade. Even portupgrade can upgrade it’s own program 🙂

The problem come with error message ‘xxxx already installed’, how to overcome this problem?

Answer: read the guide 🙂

kongja# portupgrade p5-libwww-5.79_1

—> Upgrading ‘p5-libwww-5.79_1’ to ‘p5-libwww-5.803’ (www/p5-libwww)
—> Building ‘/usr/ports/www/p5-libwww’
===> Cleaning for p5-Compress-Zlib-1.33

===> Checking if net/p5-URI already installed
===> p5-URI-1.35 is already installed
You may wish to “make deinstall” and install this port again
“make reinstall” to upgrade it properly.
If you really wish to overwrite the old port of net/p5-URI
without deleting it first, set the variable “FORCE_PKG_REGISTER”
in your environment or the “make install” command line.
*** Error code 1
Stop in /usr/ports/net/p5-URI.
*** Error code 1
Stop in /usr/ports/www/p5-libwww.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade30900.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! www/p5-libwww (p5-libwww-5.79_1) (unknown build error)
—> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

wow, check if the ports already installed

Continue reading

in Unix | 377 Words

Simple Way to Find Cisco IOS

Dynagen already accomodate dynamips,with last version of dyangen is 0.9.2 I’m ready to learn ciso router in our lab. While waiting for real cisco router I must practise first 🙂 After following video tutorial on installing dynagen I found that I need more thing : Cisco IOS From Wikipedia:

Cisco IOS (originally Internetwork Operating System) is the software used on the vast majority of Cisco Systems routers and all current Cisco network switches. IOS is a package of routing, switching, internetworking and telecommunications functions tightly integrated with a multitasking operating system. The first IOS was written by William Yeager. Cisco IOS has a characteristic command line interface (CLI), whose style has been widely copied by other networking products. The IOS CLI provides a fixed set of multiple-word commands — the set available is determined by the “mode” and the privilege level of the current user. “Global configuration mode” provides commands to change the system’s configuration, and “interface configuration mode” provides commands to change the configuration of a specific interface. A typical command may be “show interface fa0/48” or “no ip cef traffic-statistics“. All commands are assigned a privilege level, from 0 to 15, and can only be accessed by users with the necessary privilege. Through the CLI, the commands available to each privilege level can be defined.

Continue reading

Ignore port on FreeBSD

After update ports collection and find old port, need to upgrade. I found that port status : ‘Ignored

bow# portversion -v | grep ‘<'

XFree86-libraries-4.3.0_7 < needs updating (port has 4.4.0_3)

bow# portupgrade XFree86-libraries-4.3.0_7

** Port marked as IGNORE: x11/XFree86-4-libraries:
is part of XFree86-4

doh, new commit for this port 🙁

Try to update it’s makefile a bit

bow# cd /usr/ports/x11/XFree86-4-libraries/

bow# ee Makefile

find these lines:
.if ${X_WINDOW_SYSTEM:L} != xfree86-4
IGNORE= is part of XFree86-4

jadikan :

#.if ${X_WINDOW_SYSTEM:L} != xfree86-4
#IGNORE= is part of XFree86-4

try to portupgrade once again :

bow# portupgrade XFree86-libraries-4.3.0_7

—>Upgrading ‘XFree86-libraries-4.3.0_7’ to ‘XFree86-libraries-4.4.0_3’ (x11/XFree86-4-libraries)
—>Building ‘/usr/ports/x11/XFree86-4-libraries’
===>Cleaning for libiconv-1.9.2_1
===>Cleaning for gettext-0.14.4_1

done, upgrading to newest program
I love FreeBSD ports

in Unix | 60 Words

Update FreeBSD with freebsd-update

After fresh install freebsd 4.11 in old machine I need to update it right away since many security advisories. Quick way to do that using freebsd-update :

Installing freebsd-update

dns# whereis freebsd-update
freebsd-update: /usr/ports/security/freebsd-update
dns# cd /usr/ports/security/freebsd-update/
dns# make install

===> Vulnerability check disabled, database not found
=> freebsd-update-1.6.tar.gz doesn’t seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://www.daemonology.net/freebsd-update/.
freebsd-update-1.6.tar.gz 100% of 30 kB 6810 Bps

dns# cp /usr/local/etc/freebsd-update.conf.sample /usr/local/etc/freebsd-update.conf

Continue reading

in Unix | 1,446 Words