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 02-11-2020, 11:35 PM   #1
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Rep: Reputation: Disabled
2 questions - How do i find the version i`m using & can upgrade be done w/o new install


2 questions - How do i find the version of debian i`m using & can upgrade be done w/o new install / Remember folk`s i`m a newbie just learning & getting used to linux. Very happy with Linux so far though.
 
Old 02-12-2020, 12:34 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Code:
root@haswell:/home/seeder1# cat /etc/debian_version 
9.11
For the second you edit the /etc/apt/sources.list file to change the version you want.

Code:
root@haswell:/home/seeder1# cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 NETINST 20190427-10:30]/ stretch main

#deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 NETINST 20190427-10:30]/ stretch main

deb http://ftp.de.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.de.debian.org/debian/ stretch main non-free contrib

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free

# stretch-backports, previously on backports.debian.org
deb http://ftp.de.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.de.debian.org/debian/ stretch-backports main contrib non-free

# For SAB
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu bionic main 
deb-src http://ppa.launchpad.net/jcfp/ppa/ubuntu bionic main
For my file I would change the stretch to buster then apt-get update and apt-get dist-upgrade. The first to get the new packages then second to install and of course a reboot all commands run as root in terminal.
 
Old 02-12-2020, 09:21 AM   #3
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by HappyTux View Post
Code:
root@haswell:/home/seeder1# cat /etc/debian_version 
9.11
For the second you edit the /etc/apt/sources.list file to change the version you want.

Code:
root@haswell:/home/seeder1# cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 NETINST 20190427-10:30]/ stretch main

#deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 NETINST 20190427-10:30]/ stretch main

deb http://ftp.de.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.de.debian.org/debian/ stretch main non-free contrib

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free

# stretch-backports, previously on backports.debian.org
deb http://ftp.de.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.de.debian.org/debian/ stretch-backports main contrib non-free

# For SAB
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu bionic main 
deb-src http://ppa.launchpad.net/jcfp/ppa/ubuntu bionic main
For my file I would change the stretch to buster then apt-get update and apt-get dist-upgrade. The first to get the new packages then second to install and of course a reboot all commands run as root in terminal.
This is very confusing to me / All i want to do is UpDate to the current version "Buster 10.3" i only want the official debian site debian.org / ReMember only UpGrade to current version not a clean install / I want to keep what i have on it now. Thank`s also / REmember i`m a newbie so go easy on me.
 
Old 02-12-2020, 09:28 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by TokTok View Post
This is very confusing to me / All i want to do is UpDate to the current version "Buster 10.3" i only want the official debian site debian.org / ReMember only UpGrade to current version not a clean install / I want to keep what i have on it now. Thank`s also / REmember i`m a newbie so go easy on me.
First open a terminal, enter this command, and post the results:
Code:
cat /etc/debian_version

If you get 10.something then you're already on Buster and don't need to change your sources.list file.
If you get 9.something you need to change your sources.list from Stretch to Buster.
If you get a lower number, you need to upgrade each major version incrementally.

But again, before worrying about sources.list, post the version you're on from the above command.

 
1 members found this post helpful.
Old 02-12-2020, 09:33 AM   #5
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
First open a terminal, enter this command, and post the results:
Code:
cat /etc/debian_version

If you get 10.something then you're already on Buster and don't need to change your sources.list file.
If you get 9.something you need to change your sources.list from Stretch to Buster.
If you get a lower number, you need to upgrade each major version incrementally.

But again, before worrying about sources.list, post the version you're on from the above command.

Ok, thank`s i`ll get back to you later with the result.
 
Old 02-22-2020, 11:27 PM   #6
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TokTok View Post
Ok, thank`s i`ll get back to you later with the result.
Could i upgrade to current version with a dvd without loosing data programs etc. ?
 
Old 02-25-2020, 07:07 PM   #7
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TokTok View Post
Ok, thank`s i`ll get back to you later with the result.
Sorry for taking so long but it returned debian 10.2
Newest version ?
 
Old 02-25-2020, 07:12 PM   #8
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Looks like Buster to me.
 
1 members found this post helpful.
Old 02-25-2020, 08:42 PM   #9
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by the trooper View Post
Looks like Buster to me.
So no up-grade needed /Correct ?
 
Old 02-26-2020, 06:43 AM   #10
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by TokTok View Post
Sorry for taking so long but it returned debian 10.2
Newest version ?
That means you're on Buster, but there was a v10.3 released as couple of weeks back - (you can see that at https://www.debian.org/ if you scroll down to news section).

Since you're already on a Buster (10.x) release, it means you do not need to change your sources.list

You just need to run the relevant apt commands to update your local package lists then upgrade your distribution.

 
1 members found this post helpful.
Old 02-26-2020, 12:54 PM   #11
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
That means you're on Buster, but there was a v10.3 released as couple of weeks back - (you can see that at https://www.debian.org/ if you scroll down to news section).

Since you're already on a Buster (10.x) release, it means you do not need to change your sources.list

You just need to run the relevant apt commands to update your local package lists then upgrade your distribution.

Seems easy enough for debian but the packages already installed can they be updated in a batch or individual ? I installed very little extra packages 4-5 at most the rest are default.
 
Old 02-26-2020, 01:37 PM   #12
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
apt will upgrade all packages together, both Debian's ones and ones you installed yourself.

You can use apt-mark to "hold" a package on its current version and not upgrade it.

 
1 members found this post helpful.
Old 02-27-2020, 12:55 PM   #13
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
apt will upgrade all packages together, both Debian's ones and ones you installed yourself.

You can use apt-mark to "hold" a package on its current version and not upgrade it.

Great...Can you post the exact command to upgrade debian frmn 10.2 to 10.3 along with all packages "apt" ?
 
Old 02-27-2020, 03:09 PM   #14
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Code:
apt update
apt upgrade
 
1 members found this post helpful.
Old 02-27-2020, 04:42 PM   #15
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by the trooper View Post
Code:
apt update
apt upgrade
That'll work if you're running as root. Otherwise, prefix each command with sudo to act as root for that one command.

i.e. "sudo apt update", enter your password, then sudo apt upgrade. (no need for password for second time, it is cached for a few minutes)

 
1 members found this post helpful.
  


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
Spectre and Meltdown: Explanation, Info, What's being done, What can be done Zyblin Linux - Security 7 02-17-2018 09:48 PM
suse 10.0 => processes "sending kill signal": "done, done, missing"...!? ungua Linux - Newbie 2 01-18-2006 10:52 AM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

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

All times are GMT -5. The time now is 05:18 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