LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-05-2004, 07:23 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Rep: Reputation: 55
Running 'make deinstall' question


Hi folks,

I am preparing to delete 'portupgrade' and make a fresh installation

# pkg_delete portupgrade
pkg_delete: no such package 'portupgrade' installed

# which portupgrade
/usr/local/sbin/portupgrade

# head -5 /usr/local/sbin/portupgrade
#!/usr/local/bin/ruby
# -*- ruby -*-
#
# Copyright (c) 2000-2002 Akinori MUSHA

In such a case I am compelled to apply

# cd /usr/ports/sysutils/portupgrade
# make deinstall install clean

To avoid the mishap of deleting files which I need, is there a tag imposing confirmation before 'delete' taking action. Or is there any better solution.

Kindly advise. TIA.

B.R.
satimis
 
Old 06-05-2004, 09:32 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Could you be more specific about files that you "need". Is this like your refuse and supfile, or other packages and system files you're worried about?
 
Old 06-05-2004, 05:51 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Original Poster
Rep: Reputation: 55
Problem solved

Quote:
Originally posted by jcookeman
Could you be more specific about files that you "need". Is this like your refuse and supfile, or other packages and system files you're worried about?
Hi jcookeman,

Tks for your response. Problem solved with steps taken as follows;

# pkg_delete -f portupgrade-\*
pkg_delete: package XnView-FreeBSD has no origin recorded
pkg_delete: package XnView-FreeBSD has no origin recorded
pkg_delete: package XnView-FreeBSD has no origin recorded
# pkg_info | grep portugrade
(no printout)

# pkg_delete -f ruby-\*
pkg_delete: unable to completely remove directory '/usr/local/lib/ruby/site_ruby/1.6/i386-freebsd5'
pkg_delete: unable to completely remove directory '/usr/local/lib/ruby/site_ruby/1.6'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
pkg_delete: package XnView-FreeBSD has no origin recorded
pkg_delete: package XnView-FreeBSD has no origin recorded
# pkg_info | grep ruby
(no printout)

# cd /usr/ports/sysutils/portupgrade/
# make install clean
===> Vulnerability check disabled
>> pkgtools-20040208.tar.bz2 doesn't seem to exist in /usr/ports/distfi
les/.
......
===> portupgrade-20040325_1 depends on file: /usr/local/bin/ruby18 -
not found
===> Verifying install for /usr/local/bin/ruby18 in /usr/ports/lang/ ruby18
Dependency warning: used OpenSSL version contains known vulnerabilities
Please update or define either WITH_OPENSSL_BASE or WITH_OPENSSL_PORT
*** Error code 1
Stop in /usr/ports/lang/ruby18.
*** Error code 1
Stop in /usr/ports/sysutils/portupgrade.

# make WITH_OPENSSL_PORT=yes install clean
......
install -c -o root -g wheel -m 444 ChangeLog README /usr/local/share/doc/pkgtools
if [ ! -f /usr/local/etc/pkgtools.conf ]; then /bin/cp -p /usr/local/etc/pkgtools.conf.sample /usr/local/etc/pkgtools.conf; fi
===> Registering installation for portupgrade-20040325_1
===> Cleaning for ruby18-bdb1-0.2.2
===> Cleaning for ruby-1.8.1.2004.05.02
===> Cleaning for openssl-0.9.7d
===> Cleaning for portupgrade-20040325_1

# which portupgrade
/usr/local/sbin/portupgrade

# head -5 /usr/local/sbin/portupgrade
#!/usr/local/bin/ruby18
# -*- ruby -*-
#
# Copyright (c) 2000-2002 Akinori MUSHA

# pkg_info | grep ruby
ruby-1.8.1.2004.05.02 An object-oriented interpreted scripting language
ruby18-bdb1-0.2.2 Ruby interface to Berkeley DB revision 1.8x with full feature

# portsdb -Uu
Updating the ports index ... Generating INDEX.tmp - please wait..
Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1
Done.
done
[Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 10922 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000......... 8000.........9000.........10000......... ..... done]

# portsclean -C
Cleaning out /usr/ports/*/*/work...
Delete /usr/ports/archivers/rpm/work
Delete /usr/ports/devel/automake14/work
Delete /usr/ports/emulators/linux_base/work
Delete /usr/ports/print/teTeX/work
Delete /usr/ports/x11/kdebase3/work
done.

'portsclean -C' is now working

Any advice/comment will be welcome

My next move will be erasing kde-3.1.4 and install kde-3.2.2

B.R.
satimis
 
Old 06-05-2004, 10:24 PM   #4
Alex Cavnar
Member
 
Registered: Jun 2003
Location: Nashville, TN
Distribution: FreeBSD, Slack, and DebianPPC
Posts: 60

Rep: Reputation: 15
if you're having issues with packages not upgrading correctly, you can try using this command:

export FORCE_PKG_REGISTER=yes

Run that before running portupgrade, and that will force packages to install, even if there's a package that depends upon the older version. In many cases, the package with the dependancy will run just fine with the newer version of whatever you're updating.

From what I've seen, things like this sometimes happen when you're working with a ports tree updated with cvsup
 
Old 06-06-2004, 12:51 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Original Poster
Rep: Reputation: 55
Hi Alex,

Quote:
if you're having issues with packages not upgrading correctly, you can try using this command:

export FORCE_PKG_REGISTER=yes

Run that before running portupgrade, and that will force packages to install, even if there's a package that depends upon the older version. In many cases, the package with the dependancy will run just fine with the newer version of whatever you're updating.
Noted with thanks

Quote:
From what I've seen, things like this sometimes happen when you're working with a ports tree updated with cvsup
Yes. last week I ran following commands as super-root 'su -'

# cvsup -g /usr/local/etc/cvsup/port-supfile
then
# cvsup -g /usr/local/etc/cvsup/stable-supfile
and then
# portupgrade -aRrv0

After finish and reboot the PC did not work properly.

/var was full - I then removed some large size files
'portsclean' did not work
kde-3.1.4 not upgraded to kde-3.2.2

Now I am prepared to upgrade kde-3.1.4 to kde-3.2.2 and to run following commands again
# cvsup -g /usr/local/etc/cvsup/port-supfile
then
# cvsup -g /usr/local/etc/cvsup/stable-supfile
then
# portupgrade -aRrv -x kde
(to upgrade all packages and dependencies. However before actually running 'portupgrade' I will perform a test run with "-n" option)

and then (remove kde-3.1.4 and fresh-install kde-3.2.2)

# pkg_delete kde\* arts\* qt\* quanta\* kdevelop\*
# setenv PACKAGESITE http://people.fruitsalad.org/lofi/pa...ELEASE/Latest/
# pkg_add -r kde

Remark: Because I'm running FreeBSD 5.2 on a slow PC-AMD-K6-350. 'portupgrade kde' may take several days to complete. Therefore I will make a binary installation.

Any suggestion?

TIA

B.R.
satimis
 
Old 06-06-2004, 01:39 PM   #6
Alex Cavnar
Member
 
Registered: Jun 2003
Location: Nashville, TN
Distribution: FreeBSD, Slack, and DebianPPC
Posts: 60

Rep: Reputation: 15
If you're working with such a slow system, you could do portupgrade using binary packages. I think if you use the -P option with portupgrade, it will download binary packages, if available, instead of building it from source. This can be a bit quicker than having to build EVERYTHING.

example:
portupgrade -aP

this would upgrade all packages, and use binary versions where available.
 
Old 06-07-2004, 12:26 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by Alex Cavnar
If you're working with such a slow system, you could do portupgrade using binary packages. I think if you use the -P option with portupgrade, it will download binary packages, if available, instead of building it from source. This can be a bit quicker than having to build EVERYTHING.

example:
portupgrade -aP

this would upgrade all packages, and use binary versions where available.
Hi Alex,

Tks for your advice.

What will be the pros and cons of upgrading a package from binary excluding time factor?

Can
# pkg_delete -f package

removing it at any time thereafter

B.R.
satimis
 
Old 06-07-2004, 08:33 AM   #8
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
There is no difference in removing a binary package. The pros of building from source are nothing more than code optimized for your architecture and you get to set your own flags like -march=pentium4 or --fomit-frame-pointer and set optimization like -O3, etc. This can make the package run with an increase in speed.

I'll have to pull this out of the air, but %5-25%+ can be gained depending on your platform. Normally, the cost in cpu cycles of building a large package from source will never be recovered in the normal operation of it.

For instance, if you compile kde from source and it takes two days to compile and you get a %5 increase vs. using the binary package, you will never exceed the cpu time spent compiling vs. using the actual program.

Installing a binary package is nothing more than downloading it and installing it. It takes a matter of minutes because it is already compiled. But, other than that, portutils treat it the same after that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
General question while running make "make[2]: *** [main.o] Error 1" matazar42 Linux - Software 3 08-15-2005 01:39 PM
Snort Make deinstall Atrocity Slackware 12 06-13-2005 02:49 PM
firefox installed on suse92, now how to find, make icon, execute, deinstall? learnfast Linux - Newbie 6 04-07-2005 08:48 PM
Howto deinstall tar.gz after an make install cyberbull Linux - Newbie 3 02-03-2004 12:46 PM
Prob's with Deinstall+Reinstall WinE + Screenprobs LadyMakoChan Linux - Newbie 0 07-24-2003 08:23 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration