LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-26-2005, 01:03 AM   #1
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Rep: Reputation: 15
Two questions: $PATH and some apt-get help.


I added to and exported my path so it would include the java directory,
Code:
export PATH="$PATH:/usr/local/java/jdk1.5.0_05/bin"
but each time I logout it drops the changes I've made.

How do I sustain the changes from one session to the next?

~~

And for apt-get, is there a way to stay with the Sarge install that I have now, and then just upgrade specific programs (Gaim and GCC) to whatever the newest version is?
 
Old 10-26-2005, 01:32 AM   #2
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Rep: Reputation: 15
Where did you put your:

Code:
export PATH="$PATH:/usr/local/java/jdk1.5.0_05/bin"
Can you tell us where? It should be in your .profile file in the home of the directory of your user.


As for your second question, I think you won´t get upgraded to any other Debian flavor unless you do an

Code:
apt-get install kernel-imageXXXXX
With an:

Code:
apt-get update
You just updated your packages.
 
Old 10-26-2005, 02:29 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
For java to work properly and the path to be permanent, put the commands in your ~/.bash_profile or /etc/profile.
 
Old 10-26-2005, 03:37 AM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
And for apt-get, is there a way to stay with the Sarge install that I have now, and then just upgrade specific programs (Gaim and GCC) to whatever the newest version is?
There are basically four upgrade options from sarge.

(1) You can keep on using sarge and install some newer packages from backports.org. ( http://backports.org/installation.html )
(2) You can dist-upgrade to testing/etch.
(3) You can dist-upgrade to testing/etch and install some newer packages from unstable/sid.
(4) You can dist-upgrade to testing/etch and then dist-upgrade to unstable/sid.

Notice that sarge is now largely incompatible with testing and unstable. This is why there's backports.org from where you can get packages that have been taken from etch and rebuilt to be compatible with sarge. AFAIK, there aren't currently any major incompatibilities between etch and sid. Personally I use a testing/etch system with some packages from unstable/sid.
 
Old 10-26-2005, 07:16 PM   #5
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
Ok, didn't realise that i had to put it into a file like that. I added it to /etc/profile so now it looks like this.
Code:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/local/java/jdk1.5.0_05/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/java/jdk1.5.0_05/bin"
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

export PATH

umask 022
but it still doesn't seem to affect my PATH, even after a reboot.

-----

I Know how to use apt-get to update packages, but the stabe listing of gaim and gcc includes much older versions. I'd like the newest versions of those programs, the rest I can deal with the age on. I'd also apt-get to be able to continue to have a fully informed package list. If I were to manually install the two programs from source, would apt-get still be able to manage them properly?

backports.org looks intresting, but they don't have any version of GCC ilsted, and they also only have gaim 1.1 (current is 1.5).
 
Old 10-27-2005, 07:51 AM   #6
tuxuser19
Member
 
Registered: Oct 2005
Posts: 67

Rep: Reputation: 15
Why dont you remove the programs you want and install the new version of them?
I am sorry if I am wrong. I had a same problem with my GAIM and it did work!

Good luck!
 
Old 10-27-2005, 09:26 AM   #7
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
backports.org looks intresting, but they don't have any version of GCC ilsted, and they also only have gaim 1.1 (current is 1.5).
Heh, that's true. It's probably a backport made for Debian 3.0 (called "woody", now it's "oldstable"). Sarge has gaim 1.2.

Quote:
I Know how to use apt-get to update packages, but the stabe listing of gaim and gcc includes much older versions. I'd like the newest versions of those programs, the rest I can deal with the age on. I'd also apt-get to be able to continue to have a fully informed package list.
You could dist-upgrade to testing/etch. That would give you gaim 1.5 and gcc 4.0.

Testing/etch will in time become the next stable Debian release. The list of available packages in etch keeps changing all the time and packages are updated to newer versions every now and then but the developers try their best to keep testing clean from any release critical bugs. Hence, package dependencies in etch aren't nearly as reliable as in Debian stable but the bugs tend to be small ones and it's likely that you won't crash your system using etch.

Quote:
If I were to manually install the two programs from source, would apt-get still be able to manage them properly?
Apt-get only manages .deb packages, so to make your self-compiled packages visible to apt-get you need to make them .deb packages before installing them. I've heard that there are tools available for this purpose and that it isn't really that difficult but I haven't tried it myself. See, for instance, McCloud's post in this thread: http://www.linuxquestions.org/questi...hreadid=366432
 
Old 10-28-2005, 12:21 AM   #8
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Dead Parrot
You could dist-upgrade to testing/etch. That would give you gaim 1.5 and gcc 4.0.
To do this, do i simply replace all the listings in my sources.list from 'stable' to 'testing'? then 'apt-get update' followed by 'apt-get dist-upgrade'?

Code:
#deb file:///cdrom/ sarge main
deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-2 (20050607)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib main

# security packages
deb http://security.debian.org/ stable/updates main contrib
deb http://secure-testing.debian.net/debian-secure-testing etch/security-updates main contrib non-free
deb-src http://secure-testing.debian.net/debian-secure-testing etch/security-updates main contrib non-free

# general package install locations
deb http://debian.oregonstate.edu/debian/ testing main
deb-src http://debian.oregonstate.edu/debian/ testing main
deb http://mirrors.kernel.org/debian/ testing main
deb-src http://mirrors.kernel.org/debian/ testing main

# java
deb ftp://ftp.tux.org/java/debian/  testing free
deb ftp://sunsite.dk/mirrors/java-linux/debian/ testing non-free
like that?
 
  


Reply



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
Install with apt-get in other path Frunktz Debian 16 02-17-2006 05:22 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 05:07 AM
apt-get j2sdk1.4, now where is my path? lefty.crupps DamnSmallLinux 4 10-18-2005 01:19 PM
path and mysql questions Red Squirrel Linux - Newbie 13 03-07-2004 03:16 PM
Some path questions and installing Pico Mathius Linux - Newbie 1 07-04-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:33 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
Open Source Consulting | Domain Registration