LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-26-2004, 10:41 AM   #1
jmr71769
Member
 
Registered: Jun 2003
Location: East Coast, USA
Distribution: Gentoo, Debian, Slack, FreeBSD
Posts: 82

Rep: Reputation: 15
preserve links


hello fellow debian users.

i have a few boxes running sarge here at work which all have gcc-3.2 and gcc-3.3 installed on them. i keep having to manually change the /usr/bin/ link to point gcc to --> gcc-3.2 after every weekly update/upgrade. could someone please explain what tools or commands i should use to prevent this from happening?

i await your reply! thanks!

-jeff
 
Old 04-20-2004, 04:20 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Link handling gcc works somewhat different from other debian packages, and has own reasons for it.

In other packages there are the alternatives system that can be configured to point to correct executables. gcc is seen as a system program that shouldn't be changed. See http://bugs.debian.org/107587 and http://bugs.debian.org/115353 for discussion.

In sort, you shouldn't do it. If you still think you want to have gcc overridden, you can do it; you have been warned.
Code:
dpkg-divert --rename --divert /usr/bin/gcc.dpkg /usr/bin/gcc
Now the gcc file is left alone by the packaging system (original gcc is now known with the name gcc.dpkg).
 
Old 04-22-2004, 10:01 AM   #3
jmr71769
Member
 
Registered: Jun 2003
Location: East Coast, USA
Distribution: Gentoo, Debian, Slack, FreeBSD
Posts: 82

Original Poster
Rep: Reputation: 15
thanks very much!

at *last*

someone was able to provide a clear cut *answer*!!!

thanks tonit
 
  


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
Preserving number of links with 'cp'. ( preserve number of links ) Devyn Linux - General 7 09-16-2005 10:07 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
how to change relitive links to specific links? wolfe2554 Linux - General 4 07-03-2004 12:40 AM
preserve the ownership juno Linux - General 5 01-08-2003 11:01 PM
Links Section updated - Please add your Linux links. jeremy Linux - General 2 11-24-2001 11:35 AM


All times are GMT -5. The time now is 03:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration