How do you know which repo to use

New to Debian (Or Linux in general)? Ask your questions here!

How do you know which repo to use

Postby Soapm » 2017-10-23 23:05

I have trouble knowing which repository a given package is on. Let's take the below link for instance for transmission, how do I know the repository to make sure is correctly in my source.list and how would I know if I need "main" vs. "contrib" vs. "non-free". I'm sure it's on the page somewhere and obvious but I'ver scoured and scoured that page and can't tell how to know when your source.list is right for a given package.

https://packages.debian.org/search?keywords=transmission
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: How do you know which repo to use

Postby sunrat » 2017-10-23 23:10

contrib or non-free are usually marked in red on the package page, otherwise it will be in main. eg:
https://packages.debian.org/search?suit ... re-atheros
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2039
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: How do you know which repo to use

Postby Soapm » 2017-10-23 23:37

Thanks, I never noticed the red before, I guess I haven't looked up a package on non-free...

The strange thing and the other reason I'm asking is because my system is staying one version below the one on the linked page. I was wondering if I'm using the wrong repository or why I'm not updating to the latest version. This is my source.list

Code: Select all
deb http://deb.debian.org/debian jessie main non-free contrib
deb-src http://deb.debian.org/debian jessie main non-free contrib


But how do you tell if a package is on the regular repository vs multimedia, security etc...?
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: How do you know which repo to use

Postby 4D696B65 » 2017-10-23 23:41

like this
Code: Select all
apt-cache policy nvidia-driver
nvidia-driver:
  Installed: 375.82-5
  Candidate: 375.82-5
  Version table:
 *** 375.82-5 500
        500 http://ftp.ca.debian.org/debian unstable/non-free amd64 Packages
User avatar
4D696B65
 
Posts: 2024
Joined: 2009-06-28 06:09

Re: How do you know which repo to use

Postby Soapm » 2017-10-24 00:26

Cool...

Does this show I have the latest version or any reason mines won't update? The above link says 2.84-0.2 is the latest version.

Code: Select all
root@lenny:/# apt-cache policy transmission
transmission:
  Installed: 2.84-1
  Candidate: 2.84-1
  Version table:
 *** 2.84-1 0
        100 /var/lib/dpkg/status
     2.84-0.2 0
        500 http://deb.debian.org/debian/ jessie/main amd64 Packages


But also, so I'm clear, you have to install the package to know what repository the package is on???
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: How do you know which repo to use

Postby 4D696B65 » 2017-10-24 00:51

Soapm wrote:But also, so I'm clear, you have to install the package to know what repository the package is on???

Code: Select all
 apt-cache policy firmware-atheros
firmware-atheros:
  Installed: (none)
  Candidate: 20170823-1
  Version table:
     20170823-1 500
        500 http://ftp.ca.debian.org/debian unstable/non-free amd64 Packages
User avatar
4D696B65
 
Posts: 2024
Joined: 2009-06-28 06:09

Re: How do you know which repo to use

Postby Soapm » 2017-10-24 01:30

I see, the command works if the package is on your system or not.
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: How do you know which repo to use

Postby stevepusser » 2017-10-24 02:07

You have an XY problem; you are using Jessie, the older version of Debian, and looking at the version in the current release of Debian, Stretch. And no, don't add the Stretch repo, that will break Jessie if you don't do a full upgrade to Stretch.

The normal method of getting a newer application onto an older Debian without breaking it is to see if it's in the backports repository, or see if you can find it in another backports repo, or try and backport it yourself.

The "multimedia" repo packages are not official Debian, and some of those have caused big problems to users in the past. And they have "dmo" in the version.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8905
Joined: 2009-10-06 05:53

Re: How do you know which repo to use

Postby RU55EL » 2017-10-24 02:26

Soapm wrote:I see, the command works if the package is on your system or not.


As long as the package is included in what is accessible by your sources.list file.

For example, this is my sources.list file:
Code: Select all
deb  http://deb.debian.org/debian/ stretch main

deb  http://deb.debian.org/debian/ stretch-updates main

deb http://security.debian.org/ stretch/updates main


When I try something that is not in "main":
Code: Select all
russel@nuc-desktop:~$ apt-cache policy firmware-atheros
N: Unable to locate package firmware-atheros


When I try something that is in "main":
Code: Select all
russel@nuc-desktop:~$ apt-cache policy transmission
transmission:
  Installed: (none)
  Candidate: 2.92-2
  Version table:
     2.92-2 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages


So, "non-free" and "contrib" need to be in your sources.list file entries to see the apt-cache policies from "non-free" and "contrib".
User avatar
RU55EL
 
Posts: 316
Joined: 2014-04-07 03:42
Location: /home/russel

Re: How do you know which repo to use

Postby Soapm » 2017-10-24 03:14

I see, makes sense...

@steve... Actually the version I asked about is the Jessie version, Stretch has version 2.92-2.

I was doing all the last updates prior to upgrading to Stretch which is what made me notice the discrepancy. I botched my update from Wheezy so am being very careful not to mess up this one to Stretch.
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23

Re: How do you know which repo to use

Postby sunrat » 2017-10-24 04:43

Soapm wrote:Does this show I have the latest version or any reason mines won't update? The above link says 2.84-0.2 is the latest version.

Code: Select all
root@lenny:/# apt-cache policy transmission
transmission:
  Installed: 2.84-1
  Candidate: 2.84-1
  Version table:
 *** 2.84-1 0
        100 /var/lib/dpkg/status
     2.84-0.2 0
        500 http://deb.debian.org/debian/ jessie/main amd64 Packages

It says the current version in Jessie is 2.84-0.2. 2.84-1 appears to be a more recent version than 2.84-0.2, how did you install that?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2039
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: How do you know which repo to use

Postby Soapm » 2017-10-24 04:58

sunrat wrote:
Soapm wrote:Does this show I have the latest version or any reason mines won't update? The above link says 2.84-0.2 is the latest version.

Code: Select all
root@lenny:/# apt-cache policy transmission
transmission:
  Installed: 2.84-1
  Candidate: 2.84-1
  Version table:
 *** 2.84-1 0
        100 /var/lib/dpkg/status
     2.84-0.2 0
        500 http://deb.debian.org/debian/ jessie/main amd64 Packages

It says the current version in Jessie is 2.84-0.2. 2.84-1 appears to be a more recent version than 2.84-0.2, how did you install that?


Who knows, but that was my concern. I believe I would have used aptitude but that would have been back in 2014 when I got the new motherboard.

However, I just did my Stretch update and it updated this package to 2.92...

Code: Select all
root@lenny:/# apt-cache policy transmission
transmission:
  Installed: 2.92-2
  Candidate: 2.92-2
  Version table:
 *** 2.92-2 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
User avatar
Soapm
 
Posts: 494
Joined: 2012-05-22 04:23


Return to Beginners Questions

Who is online

Users browsing this forum: mauric, Number3124 and 7 guests

fashionable