This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Packages from Ubuntu and Neon: Install-Priorities. An answer

Tags: None
(comma "," separated)
NoNameNoBlame
Karma
0
On this Forum, it was asked:

Whenever I sudo apt install an app, it's first checked if it exists in Neon's repo.
If it does, it gets installed from there.
If the app is not present in Neon's repo, then it's pulled in from Ubuntu's repo.
Is that correct?

Short answer: YES! But it's not a question of (non-)existence alone.
There are rules of priority within the package management configuration.

The details: An example

$ aptitude versions '?name(plasma-workspace$)?origin(neon)'

Package plasma-workspace:
p A 4:5.10.0-0neon+16.04+xenial+build84 xenial
p A 4:5.10.1-0neon+16.04+xenial+build85 xenial
p A 4:5.10.2-0neon+16.04+xenial+build86 xenial
i A 4:5.10.3-0neon+16.04+xenial+build87 xenial <== newest==preferred


$ aptitude versions '?name(plasma-workspace$)?origin(Ubuntu)'

Package plasma-workspace:
p A 4:5.5.5.2-0ubuntu1 xenial

Package plasma-workspace:i386:
p 4:5.5.5.2-0ubuntu1 xenial


# The newest version is preferred. Origin (Ubuntu or Neon) is irrelevant.
# So far it's the normal mechanism: Newer is preferred.

# And also: There are other priorities set to give Neon the advantage.

# End of Text
NoNameNoBlame
Karma
0
# If someone is interested in finding the
# possible 'origin'-values,

# here's how to find out:

$ dpkg-vendor --query 'Vendor'

<-->neon


$ dpkg-vendor --query 'Parent'

<-->Ubuntu


$ apt-cache policy | grep -E -o 'o=[^,]+' | sort -u

<-->o=Opera Software ASA
<-->o=Oracle Corporation
<-->o=TorProject
<-->o=Ubuntu
<-->o=Valve Software LLC
<-->o=Vivaldi Technologies
<-->o=neon

Edit: Forgot '-E' after grep, because my 'grep' is an bash-alias…
NoNameNoBlame
Karma
0
2 Blog-Posts at the top refer to:

$ lsb_release -sd; echo -e "\nwith most current updates at UTC-time:"; date -u

KDE neon User Edition 5.10

with most current updates at UTC-time:
2017-07-20T12:45:28+0000
raddison
Registered Member
Posts
515
Karma
0
@NoName

I'm not sure I wanna go that deep yet. I use KDE Neon. Hence my distribution is Ubuntu Xenial with some extras on it, namely KDE Neon (software repository).

Also, I don't need much to be happy. Neon has already covered most of my needs.

I prefer the following way, for the time being:
Code: Select all
me@pc:~$ apt search qupzilla
Sorting... Done
Full Text Search... Done
libqupzilla-dev/xenial 1.8.9~dfsg1-3 amd64
  development files for qupzilla's shared library

libqupzilla1/xenial 1.8.9~dfsg1-3 amd64
  shared library and header files for qupzilla

qupzilla/xenial 1.8.9~dfsg1-3 amd64
  lightweight web browser based on libqtwebkit

me@pc:~$ apt search k3b
Sorting... Done
Full Text Search... Done
k3b/xenial,now 2.0.3-0ubuntu5 amd64 [installed]
  Sophisticated CD/DVD burning application

k3b-data/xenial,xenial,now 2.0.3-0ubuntu5 all [installed,automatic]
  Sophisticated CD/DVD burning application - data files

k3b-dbg/xenial 2.0.3-0ubuntu5 amd64
  Sophisticated CD/DVD burning application - debugging symbols

k3b-extrathemes/xenial,xenial 2.0.3-0ubuntu5 all
  Sophisticated CD/DVD burning application - extra themes

k3b-i18n/xenial 4:17.04.0+p16.04+git20170420.2245 all
  dummy transitional package for k3b-i18n

libk3b-dev/xenial 2.0.3-0ubuntu5 amd64                                                                                                                                                                                                                                         
  KDE CD/DVD burning application library - development files                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                               
libk3b6/xenial,now 2.0.3-0ubuntu5 amd64 [installed,automatic]                                                                                                                                                                                                                 
  KDE CD/DVD burning application library - runtime files                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                               
libk3b6-extracodecs/xenial,now 2.0.3-0ubuntu5 amd64 [installed,automatic]                                                                                                                                                                                                     
  KDE CD/DVD burning application library - extra decoders                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                               
me@pc:~$ apt search calligrawords                                                                                                                                                                                                                                         
Sorting... Done                                                                                                                                                                                                                                                               
Full Text Search... Done                                                                                                                                                                                                                                                       
calligrawords/xenial 1:3.0.1-0neon+16.04+build16 amd64                                                                                                                                                                                                                         
  word processor for the Calligra Suite                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                               
calligrawords-common/xenial 1:2.9.7-0ubuntu12 amd64                                                                                                                                                                                                                           
  shared files for calligrawords and calligraauthor                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                               
calligrawords-data/xenial 1:3.0.1-0neon+16.04+build16 all                                                                                                                                                                                                                     
  data files for Words word processor                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                               
calligrawords-dbgsym/xenial 1:3.0.1-0neon+16.04+build16 amd64                                                                                                                                                                                                                 
  Debug symbols for calligrawords                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                               
me@pc:~$                                   


I interpret the above as follows:
1. No K3B in Neon's repo
2. No QupZilla in Neon's repo
3. Calligra is present in Neon's repo. Don't now if it's the latest version though.

What do you think?

If I download plain Xenial with Unity on it, and search for QupZilla and K3B, I'll find the same versions, I assume.

Edit: I'm using Neon User LTS at the moment.
Edit 2: Referring to Calligra's version present in Neon's repo. Seems it's the latest based on this
Code: Select all
me@pc:~$ apt search calligrawords                                                                                                                                                                                                                                         
Sorting... Done                                                                                                                                                                                                                                                               
Full Text Search... Done                                                                                                                                                                                                                                                       
calligrawords/xenial 1:3.0.1-0neon+16.04+build16 amd64                                                                                                                                                                                                                         
  word processor for the Calligra Suite                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                               
calligrawords-common/xenial 1:2.9.7-0ubuntu12 amd64                                                                                                                                                                                                                           
  shared files for calligrawords and calligraauthor                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                               
calligrawords-data/xenial 1:3.0.1-0neon+16.04+build16 all                                                                                                                                                                                                                     
  data files for Words word processor                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                               
calligrawords-dbgsym/xenial 1:3.0.1-0neon+16.04+build16 amd64                                                                                                                                                                                                                 
  Debug symbols for calligrawords

and that: https://www.calligra.org/get-calligra/

Last edited by raddison on Fri Jul 21, 2017 5:40 pm, edited 1 time in total.


Proud to be powered by Plasma
User avatar
acheronuk
KDE Developer
Posts
122
Karma
2
Code: Select all
~$ apt-cache policy k3b
k3b:
  Installed: (none)
  Candidate: 17.03.90+p16.04+git20170720.0344-0
  Version table:
     17.03.90+p16.04+git20170720.0344-0 500
        500 http://archive.neon.kde.org/dev/unstable xenial/main amd64 Packages
     2.0.3-0ubuntu5 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

~$ apt-cache policy qupzilla
qupzilla:
  Installed: (none)
  Candidate: 1.8.9~dfsg1-3
  Version table:
     1.8.9~dfsg1-3 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

~$ apt-cache policy calligrawords
calligrawords:
  Installed: (none)
  Candidate: 1:3.0.1+p16.04+git20170718.0245-0
  Version table:
     1:3.0.1+p16.04+git20170718.0245-0 500
        500 http://archive.neon.kde.org/dev/unstable xenial/main amd64 Packages
     1:2.9.7-0ubuntu12 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages


dev-unstable machine

Above shows it clearer to me, if you know the packagename.

1. k3b in both
2. qupzilla only provided by the ubuntu repo
3. calligrawords in both

All with priority of 500, so highest version number is the installation candidate in each case where more than one.
raddison
Registered Member
Posts
515
Karma
0
acheronuk wrote:
Code: Select all
~$ apt-cache policy k3b
k3b:
  Installed: (none)
  Candidate: 17.03.90+p16.04+git20170720.0344-0
  Version table:
     17.03.90+p16.04+git20170720.0344-0 500
        500 http://archive.neon.kde.org/dev/unstable xenial/main amd64 Packages
     2.0.3-0ubuntu5 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

~$ apt-cache policy qupzilla
qupzilla:
  Installed: (none)
  Candidate: 1.8.9~dfsg1-3
  Version table:
     1.8.9~dfsg1-3 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

~$ apt-cache policy calligrawords
calligrawords:
  Installed: (none)
  Candidate: 1:3.0.1+p16.04+git20170718.0245-0
  Version table:
     1:3.0.1+p16.04+git20170718.0245-0 500
        500 http://archive.neon.kde.org/dev/unstable xenial/main amd64 Packages
     1:2.9.7-0ubuntu12 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages


dev-unstable machine

Above shows it clearer to me, if you know the packagename.

1. k3b in both
2. qupzilla only provided by the ubuntu repo
3. calligrawords in both

All with priority of 500, so highest version number is the installation candidate in each case where more than one.


@acheronuk Thanks. I've just learned something. which is good.

My results:
Code: Select all
me@pc:~$ apt-cache policy k3b
k3b:
  Installed: 2.0.3-0ubuntu5
  Candidate: 2.0.3-0ubuntu5
  Version table:
 *** 2.0.3-0ubuntu5 500
        500 http://xx.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status
me@pc:~$ apt-cache policy qupzilla
qupzilla:
  Installed: (none)
  Candidate: 1.8.9~dfsg1-3
  Version table:
     1.8.9~dfsg1-3 500
        500 http://xx.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
me@pc:~$ apt-cache policy calligrawords
calligrawords:
  Installed: (none)
  Candidate: 1:3.0.1-0neon+16.04+build16
  Version table:
     1:3.0.1-0neon+16.04+build16 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
     1:2.9.7-0ubuntu12 500
        500 http://xx.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
me@pc:~$


For some reason, I prefer Calligra over Libre. Qt, I guess. That's why. But it's capable too.


Proud to be powered by Plasma
raddison
Registered Member
Posts
515
Karma
0
@Packagers of Neon User LTS Please package a fresh K3B and a fresh Qupzilla. :*

@acheronuk Can't thank you enough.

A command to be remembered (by me and others like me, if they care):
Code: Select all
apt-cache policy
followed by name of app

The forum is actually useful.


Proud to be powered by Plasma
NoNameNoBlame
Karma
0
# "neon"-origin packages
# of Your current edition
# either 'User LTS Edition', 'User Edition', or etc:
#
# (no developer nor debug,
# only packages for normal users):

# Copy and paste this block in one single action.

# Copy from below here: ##################################
command aptitude -w 149 -F '%54p|%i|%c|%a|%84d|' \
search '?origin(neon)' | \
command grep -E -v '\-dbgsym |\-dev |\-dbg ' | \
command less -S -M -#64 -i +Gg --pattern='.*\|[^i]\|.\|.*'
# Copy from above here ###################################

# Paste it into command line. And RETURN.
raddison
Registered Member
Posts
515
Karma
0
NoNameNoBlame wrote:# "neon"-origin packages
# of Your current edition
# either 'User LTS Edition', 'User Edition', or etc:
#
# (no developer nor debug,
# only packages for normal users):

# Copy and paste this block in one single action.

# Copy from below here: ##################################
command aptitude -w 149 -F '%54p|%i|%c|%a|%84d|' \
search '?origin(neon)' | \
command grep -E -v '\-dbgsym |\-dev |\-dbg ' | \
command less -S -M -#64 -i +Gg --pattern='.*\|[^i]\|.\|.*'
# Copy from above here ###################################

# Paste it into command line. And RETURN.


@NoName Thank you. :)


Proud to be powered by Plasma


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft