分类: BSD
2007-07-02 10:29:52
代码: |
cd /usr/ports/editors/joe/
make fetch |
代码: |
cd /usr/ports/systuils/portupgrade/
make fetch-recursive |
代码: |
cd /usr/ports/
make fetch |
代码: |
cd /usr/ports/ftp/
make fetch |
代码: |
cd /usr/ports/editors/joe/
make extract |
代码: |
cd /usr/ports/editors/joe/
make patch |
代码: |
cd /usr/ports/editors/joe/
make install |
代码: |
cd /usr/ports/editors/joe/
#make clean |
代码: |
cd /usr/ports/
#make clean |
代码: |
cd /usr/ports/editors/joe/
#make package |
代码: |
mkdir -p /usr/ports/packages/All/ |
代码: |
cd /usr/ports/editors/joe/
make package clean |
代码: |
cd /usr/ports/sysutils/portupgrade/
make DEPENDS_TARGET=package package |
代码: |
cd /var/db/pkg/
pkg_create -b joe-{版本号} |
代码: |
cd /usr/ports/editors/joe/
make clean |
代码: |
cd /usr/ports/
make clean |
代码: |
cd /usr/ports/ftp/
make clean |
代码: |
cd /usr/ports/editors/joe/
make distclean |
代码: |
cd /usr/ports/
make distclean |
代码: |
cd /usr/ports/ftp/
make distclean |
代码: |
cd /usr/ports/mail/p5-Mail-SpamAssassin/
make all-depends-list #显示所有相关的套件 make pretty-print-build-depends-list #显示编译期间所需要的套件 make pretty-print-run-depends-list #显示此套件要执行时所需要的套件 |
代码: |
cd /usr/ports/editors/joe/
make deinstall |
代码: |
cd /var/db/pkg/
pkg_delete joe-{version} |
代码: |
cd /var/db/pkg/
pkg_delete -f joe-{version} |
代码: |
cd /usr/ports/sysutils/portupgrade/
make deinstall-depends |
代码: |
cd /var/db/pkg/
pkg_delete -r portupgrade-{version} |
代码: |
13、如何重新安装已安装过的 ports? |
代码: |
cd /usr/ports/editors/joe/
make deinstall make clean make install 或 make reinstall |
代码: |
cd /usr/ports/
make search key=ldap |
代码: |
cd /usr/ports/ftp/
make search key=ldap |
代码: |
cd /usr/ports/
make search name=ldap |
代码: |
cd /usr/ports/ftp/
make search name=ldap |
代码: |
cd /var/db/pkg/
pkg_delete joe-{version} cd /usr/ports/editors/joe/ make install |
代码: |
cd /usr/ports/editors/joe/
make clean make reinstall |
代码: |
pkg_info |
代码: |
pkg_info | grep |
代码: |
pkg_info -W /usr/local/bin/joe |
代码: |
pkg_info -L /var/db/pkg/joe-{version} |
代码: |
# vi /usr/share/examples/cvsup/ports-supfile
****************************************** default date=2002.10.05.00.00.00 #将 date 改成当日 |
代码: |
# vi /usr/share/examples/cvsup/ports-supfile
****************************************** #ports-all #将 ports-all 标示起来 ports-lang #加入这行 |
代码: |
cd /usr/src/
make update cd /usr/src/share/mk make install |
代码: |
cd /usr/ports/???/???/
make -DUSE_REINPLACE install |
代码: |
pkg_version -c |
代码: |
cd /usr/ports/sysutils/portupgrade/
make -DNOPORTDOCS install # make NOPORTDOCS=yes install 亦同 |
代码: |
cd /usr/ports/sysutils/portupgrade/
grep defined Makefile |
代码: |
cd /usr/ports/ftp/pure-ftpd/
make CONFIGURE_ARGS+="--without-inetd" install |
代码: |
cd /usr/ports/editors/joe/
make PREFIX=/usr install |
代码: |
pkg_add joe-{version}.tgz |
代码: |
pkg_add -f joe-{version}.tgz |
代码: |
pkg_info -r portupgrade-{version}.tgz |
代码: |
pkg_add -r portupgrade |
代码: |
cd /usr/ports/
make index |
代码: |
cd /usr/ports/
make readmes |
代码: |
cd /usr/ports/ftp/
make readme |
代码: |
# vi /usr/sup/refuse
****************************************** ports/french ports/german ports/hebrew ports/hungarian ports/japanese |
代码: |
# vi /usr/sup/refuse
****************************************** ports/lang/perl5.8 |
代码: |
# vi /usr/sup/refuse
****************************************** ports/lang/perl* ports/po* |
代码: |
# cd /usr/ports/mail/cclient/
# make reinstall 或 # make deinstall && make install # cd /usr/ports/mail/imap-uw/ # make install |
代码: |
openssl version -v |
代码: |
make -DWITH_OPENSSL_PORT install |
代码: |
brandelf -l |
代码: |
brandelf execution-binary-filename |
代码: |
rpm --ignoreos --root /compat/linux --dbpath /var/lib/rpm/ -Uvh xxx.rpm |
代码: |
make clean
make showconfig # 显示设定的内容 make rmconfig # 清除设定的内容 make config |
代码: |
cat /var/db/ports/python/options |
代码: |
pkg_info | sort | sed -e 's/-[0-9].*$//' | uniq -c | grep -v '^[[:space:]]*1' |
代码: |
cd /usr/ports/
make search name=libtool |
代码: |
/usr/ports/devel/libtool13
/usr/ports/devel/libtool14 /usr/ports/devel/libtool15 |
代码: |
cd /usr/ports/
make search name=gettext |
代码: |
/usr/ports/devel/gettext |
代码: |
cd /var/db/pkg/
pkg_delete p* |
代码: |
cd /usr/ports/editors/joe/
make distclean |