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

Can pkcon replace apt or apt-get altogether?

Tags: None
(comma "," separated)
raddison
Registered Member
Posts
515
Karma
0
Oops! Gosh. Seems this all http://manpages.ubuntu.com/manpages/xen ... con.1.html works on Neon. Wonder whether one can administer his/her Neon-based system without any "apt" or "apt-get" types at all and solely relying on "pkcon"

Yes/no?

Code: Select all
me@me:~$ pkcon install libreoffice
Resolving                     [=========================]         
Querying                      [=========================]         
Testing changes               [=========================]         
Finished                      [                         ] (0%) 
The following packages have to be installed:
 ca-certificates-java-20160321.all      Common CA certificates (JKS keystore)
 default-jre-2:1.8-56ubuntu2.amd64      Standard Java or Java compatible Runtime
 default-jre-headless-2:1.8-56ubuntu2.amd64     Standard Java or Java compatible Runtime (headless)
 fonts-opensymbol-2:102.7+LibO5.1.6~rc2-0ubuntu1~xenial2.all    OpenSymbol TrueType font                                                                                                                                                                                       
 fonts-sil-gentium-20081126:1.03-1.all  extended Unicode Latin font ("a typeface for the nations")                                                                                                                                                                             
 fonts-sil-gentium-basic-1.1-7.all      smart Unicode font families (Basic and Book Basic) based on Gentium                                                                                                                                                                   
 fonts-stix-1.1.1-4.all Scientific and Technical Information eXchange fonts                                                                                                                                                                                                   
 java-common-0.56ubuntu2.all    Base package for Java runtimes                                                                                                                                                                                                                 
 libabw-0.1-1v5-0.1.1-2ubuntu2.amd64    library for reading and writing AbiWord(tm) documents                                                                                                                                                                                 
 libboost-date-time1.58.0-1.58.0+dfsg-5ubuntu3.1.amd64  set of date-time libraries based on generic programming concepts                                                                                                                                                       
 libboost-iostreams1.58.0-1.58.0+dfsg-5ubuntu3.1.amd64  Boost.Iostreams Library                                                                                                                                                                                               
 libcdr-0.1-1-0.1.2-2ubuntu2.amd64      library for reading and converting Corel DRAW files                                                                                                                                                                                   
 libclucene-contribs1v5-2.3.3.4-4.1.amd64       language specific text analyzers (runtime)                                                                                                                                                                                     
 libcmis-0.5-5v5-0.5.1-2ubuntu2.amd64   CMIS protocol client library                                                                                                                                                                                                           
 libcolamd2.9.1-1:4.4.6-1.amd64 column approximate minimum degree ordering library for sparse matrices                                                                                                                                                                         
 libe-book-0.1-1-0.1.2-2ubuntu1.amd64   library for reading and converting various  e-book formats                                                                                                                                                                             
 libeot0-0.01-3ubuntu1.amd64    Library for parsing/converting Embedded OpenType files                                                                                                                                                                                         
 libetonyek-0.1-1-0.1.6-1ubuntu1.amd64  library for reading and converting Apple Keynote presentations                                                                                                                                                                         
 libexttextcat-2.0-0-3.4.4-1ubuntu3.amd64       Language detection library                                                                                                                                                                                                     
 libexttextcat-data-3.4.4-1ubuntu3.all  Language detection library - data files                                                                                                                                                                                               
 libfreehand-0.1-1-0.1.1-1ubuntu1.amd64 Library for parsing the FreeHand file format structure                                                                                                                                                                                 
 libglew1.13-1.13.0-2.amd64     OpenGL Extension Wrangler - runtime environment                                                                                                                                                                                               
 libharfbuzz-icu0-1.0.1-1ubuntu0.1.amd64        OpenType text shaping engine ICU backend                                                                                                                                                                                       
 libhsqldb1.8.0-java-1.8.0.10+dfsg-6.all        Java SQL database engine                                                                                                                                                                                                       
 libhyphen0-2.8.8-2ubuntu1.amd64        ALTLinux hyphenation library - shared library                                                                                                                                                                                         
 liblangtag-common-0.5.7-2ubuntu1.all   library to access tags for identifying languages -- data                                                                                                                                                                               
 liblangtag1-0.5.7-2ubuntu1.amd64       library to access tags for identifying languages                                                                                                                                                                                       
 libmspub-0.1-1-0.1.2-2ubuntu1.amd64    library for parsing the mspub file structure                                                                                                                                                                                           
 libmwaw-0.3-3-0.3.7-1ubuntu2.1.amd64   import library for some old Mac text documents                                                                                                                                                                                         
 libmythes-1.2-0-2:1.2.4-1ubuntu3.amd64 simple thesaurus library                                                                                                                                                                                                               
 libodfgen-0.1-1-0.1.6-1ubuntu2.amd64   library to generate ODF documents                                                                                                                                                                                                     
 liborcus-0.10-0v5-0.9.2-4ubuntu2.amd64 library for processing spreadsheet documents
 libpagemaker-0.0-0-0.0.3-1ubuntu1.amd64        Library for importing and converting PageMaker Documents
 libreoffice-1:5.1.6~rc2-0ubun[=========================]         y suite (metapackage)
Installing                    [=========================]         2.amd64       GStreamer backend for LibreOffice
Waiting for authentication    [=========================]         ductivity suite -- database
Loading cache                 [=========================]         fice productivity suite -- shared library
Downloading packages          [=========================]         tabase connectivity drivers for LibreOffice
Running                       [=========================]         ductivity suite -- spreadsheet
Installing packages           [=========================]         ductivity suite -- arch-independent files
Committing changes            [=========================]         ductivity suite -- arch-dependent files
Installing packages           [=========================]         ductivity suite -- drawing
Committing changes            [=========================]         ductivity suite -- GNOME integration
Finished                      [=========================]         ductivity suite -- GTK+ integration
me@me:~$ CRITICAL **: Source ID 2469 was not found when attempting to remove itentation
 libreoffice-java-common-1:5.1.6~rc2-0ubuntu1~xenial2.all       office productivity suite -- arch-independent Java support files
 libreoffice-math-1:5.1.6~rc2-0ubuntu1~xenial2.amd64    office productivity suite -- equation editor
 libreoffice-pdfimport-1:5.1.6~rc2-0ubuntu1~xenial2.amd64       PDF Import component for LibreOffice
 libreoffice-report-builder-bin-1:5.1.6~rc2-0ubuntu1~xenial2.amd64      LibreOffice component for building database reports -- libraries
 libreoffice-sdbc-firebird-1:5.1.6~rc2-0ubuntu1~xenial2.amd64   Firebird SDBC driver for LibreOffice
 libreoffice-sdbc-hsqldb-1:5.1.6~rc2-0ubuntu1~xenial2.amd64     HSQLDB SDBC driver for LibreOffice
 libreoffice-style-elementary-1:5.1.6~rc2-0ubuntu1~xenial2.all  office productivity suite -- Elementary symbol style
 libreoffice-style-galaxy-1:5.1.6~rc2-0ubuntu1~xenial2.all      office productivity suite -- Galaxy (Default) symbol style
 libreoffice-writer-1:5.1.6~rc2-0ubuntu1~xenial2.amd64  office productivity suite -- word processor
 libservlet3.1-java-8.0.32-1ubuntu1.4.all       Servlet 3.1, JSP 2.3, EL 3.0 and WebSocket 1.0 Java API classes
 libsuitesparseconfig4.4.6-1:4.4.6-1.amd64      configuration routines for all SuiteSparse modules
 libvisio-0.1-1-0.1.5-1ubuntu1.amd64    library for parsing the visio file structure
 lp-solve-5.5.0.13-7build2.amd64        Solve (mixed integer) linear programming problems
 openjdk-8-jre-8u131-b11-0ubuntu1.16.04.2.amd64 OpenJDK Java runtime, using Hotspot JIT
 openjdk-8-jre-headless-8u131-b11-0ubuntu1.16.04.2.amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
 python3-uno-1:5.1.6~rc2-0ubuntu1~xenial2.amd64 Python-UNO bridge
 uno-libs3-5.1.6~rc2-0ubuntu1~xenial2.amd64     LibreOffice UNO runtime environment -- public shared libraries
 ure-5.1.6~rc2-0ubuntu1~xenial2.amd64   LibreOffice UNO runtime environment
Proceed with changes? [N/y] y



Seems to have installed just fine. But what's that ^ "CRITICAL **: Source ID 2469 was not found when attempting to remove itentation"

Learning requires sacrifices. Including breaking the system ;)


Proud to be powered by Plasma
hiteshshah
Registered Member
Posts
18
Karma
0
OS
There seems to be something wrong with the code you've posted.

Line 1 has
Code: Select all
me@me:~$ pkcon install libreoffice

but then line 51 has
Code: Select all
me@me:~$ CRITICAL **: Source ID 2469 was not found when attempting to remove itentation
I don't see how "CRITICAL" can follow your prompt (me@me:~$).
raddison
Registered Member
Posts
515
Karma
0
@hiteshshah

Then what is that?
Code: Select all
me@machine:~$ pkcon refresh
Refreshing cache              [=========================]         
Loading cache                 [=========================]         
Refreshing software list      [=========================]         
Downloading packages          [=========================]         
Running                       [=========================]         
Finished                      [=========================]         
me@machine:~$ pkcon update
Getting updates               [=========================]         
Finished                      [=========================]         
Loading cache                 [=========================]         
Testing changes               [=========================]         
Finished                      [                         ] (0%)
The following packages have to be installed:
 libcapnp-0.5.3-0.5.3-2ubuntu1.amd64    Cap'n Proto C++ library
 libmircommon7-0.26.3+16.04.20170605-0ubuntu1.amd64     Display server for Ubuntu - shared library
 libmircore1-0.26.3+16.04.20170605-0ubuntu1.amd64       Display server for Ubuntu - shared library
 libzip5-1.2.0-0neon+16.04+xenial+build10.amd64 library for reading, creating, and modifying zip archives (runtime)
 linux-headers-4.8.0-56-4.8.0-56.61~16.04.1.all Header files related to Linux kernel version 4.8.0
 linux-headers-4.8.0-56-generic-4.8.0-56.61~16.04.1.amd64       Linux kernel headers for version 4.8.0 on 64 bit x86 SMP
 linux-image-4.8.0-56-generic-4.8.0-56.61~16.04.1.amd64 Linux kernel image for version 4.8.0 on 64 bit x86 SMP
 linux-image-extra-4.8.0-56-generic-4.8.0-56.61~16.04.1.amd64   Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
The following packages have to be updated:
 ark-4:17.04.2-0neon+16.04+xenial+build31.amd64 archive utility
 breeze-4:5.10.2-0neon+16.04+xenial+build45.amd64       Default Plasma theme (meta-package).
 breeze-cursor-theme-4:5.10.2-0neon+16.04+xenial+build45.all    Default Plasma cursor theme.
 grub-common-2.02~beta2-36ubuntu3.11.amd64      GRand Unified Bootloader (common files)
 grub-pc-2.02~beta2-36ubuntu3.11.amd64  GRand Unified Bootloader, version 2 (PC/BIOS version)
 grub-pc-bin-2.02~beta2-36ubuntu3.11.amd64      GRand Unified Bootloader, version 2 (PC/BIOS binaries)
 grub2-common-2.02~beta2-36ubuntu3.11.amd64     GRand Unified Bootloader (common files for version 2)
 kde-spectacle-17.04.2-0neon+16.04+xenial+build39.amd64 Screenshot capture utility, replaces KSnapshot                                                                                                                                                                         
 kde-style-breeze-4:5.10.2-0neon+16.04+xenial+build45.amd64     Widget style for Qt and KDE Software                                                                                                                                                                           
 kde-style-breeze-qt4-4:5.10.2-0neon+16.04+xenial+build45.amd64 Widget style for Qt 4 and KDE Software                                                                                                                                                                         
 kwayland-data-4:5.35.0-0neon+16.04+xenial+build29.all  Qt library wrapper for Wayland libraries - data files                                                                                                                                                                 
 kwin-4:5.10.2-0neon+16.04+xenial+build56.all   Transitional dummy for kwin-x11                                                                                                                                                                                               
 kwin-common-4:5.10.2-0neon+16.04+xenial+build56.amd64  KDE window manager, common files                                                                                                                                                                                       
 kwin-data-4:5.10.2-0neon+16.04+xenial+build56.all      KDE window manager data files                                                                                                                                                                                         
 kwin-style-breeze-4:5.10.2-0neon+16.04+xenial+build45.amd64    KWin Breeze Style                                                                                                                                                                                             
 kwin-x11-4:5.10.2-0neon+16.04+xenial+build56.amd64     KDE window manager, X11 version                                                                                                                                                                                       
 libc-bin-2.23-0ubuntu9.amd64   GNU C Library: Binaries                                                                                                                                                                                                                       
 libc6-2.23-0ubuntu9.amd64      GNU C Library: Shared libraries                                                                                                                                                                                                               
 libc6-dbg-2.23-0ubuntu9.amd64  GNU C Library: detached debugging symbols                                                                                                                                                                                                     
 libdlrestrictions1-0.15.20~ubuntu4+p16.04+git20170620.0751.amd64       library that implements library compatibility checks for dlopen()                                                                                                                                     
 libkf5plasma5-5.35.0-0neon+16.04+xenial+build39.amd64  Plasma Runtime components                                                                                                                                                                                             
 libkf5plasmaquick5-5.35.0-0neon+16.04+xenial+build39.amd64     Plasma Runtime components                                                                                                                                                                                     
 libkf5waylandclient5-4:5.35.0-0neon+16.04+xenial+build29.amd64 Qt library wrapper for Wayland libraries                                                                                                                                                                       
 libkf5waylandserver5-4:5.35.0-0neon+16.04+xenial+build29.amd64 Qt library wrapper for Wayland libraries                                                                                                                                                                       
 libkwin4-effect-builtins1-4:5.10.2-0neon+16.04+xenial+build56.amd64    KDE window manager effect builtins library                                                                                                                                                             
 libkwineffects11-4:5.10.2-0neon+16.04+xenial+build56.amd64     KDE window manager effects library                                                                                                                                                                             
 libkwinglutils11-4:5.10.2-0neon+16.04+xenial+build56.amd64     KDE window manager gl utils library                                                                                                                                                                           
 libkwinxrenderutils11-4:5.10.2-0neon+16.04+xenial+build56.amd64        KDE window manager render utils library                                                                                                                                                               
 libmirclient9-0.26.3+16.04.20170605-0ubuntu1.amd64     Display server for Ubuntu - client library                                                                                                                                                                             
 libmirprotobuf3-0.26.3+16.04.20170605-0ubuntu1.amd64   Display server for Ubuntu - RPC definitions                                                                                                                                                                           
 libqgsttools-p1-5.9.0-0neon+16.04+xenial+build5.amd64  GStreamer tools for  Qt 5 Multimedia module                                                                                                                                                                           
 libqt5concurrent5-5.9.0-0neon+16.04+xenial+build5.amd64        Qt 5 concurrent module                                                                                                                                                                                         
 libqt5core5a-5.9.0-0neon+16.04+xenial+build5.amd64     Qt 5 core module                                                                                                                                                                                                       
 libqt5dbus5-5.9.0-0neon+16.04+xenial+build5.amd64      Qt 5 D-Bus module                                                                                                                                                                                                     
 libqt5designer5-5.9.0-0neon+16.04+xenial+build6.amd64  Qt 5 designer module                                                                                                                                                                                                   
 libqt5designercomponents5-5.9.0-0neon+16.04+xenial+build6.amd64        Qt 5 Designer components module                                                                                                                                                                       
 libqt5gui5-5.9.0-0neon+16.04+xenial+build5.amd64       Qt 5 GUI module                                                                                                                                                                                                       
 libqt5help5-5.9.0-0neon+16.04+xenial+build6.amd64      Qt 5 help module                                                                                                                                                                                                       
 libqt5multimedia5-5.9.0-0neon[=========================]          5 Multimedia module                                                                                                                                                                                         
Updating packages             [=========================]               Qt 5 Multimedia module plugins                                                                                                                                                                         
Waiting for authentication    [=========================]          5 Multimedia Quick module                                                                                                                                                                                   
Loading cache                 [=========================]          5 Multimedia Widgets module                                                                                                                                                                                 
Downloading packages          [=========================]         rk module                                                                                                                                                                                                   
Running                       [=========================]         L module                                                                                                                                                                                                     
Installing packages           [=========================]          5 print support module                                                                                                                                                                                     
Committing changes            [=========================]         odule
Installing packages           [=========================]          library
Committing changes            [=========================]          5 Quick Controls 2 library
Installing packages           [=========================]          5 Quick Templates 2 library
Committing changes            [=========================]          5 Quick Widgets library
Installing packages           [=========================]         t module
Committing changes            [=========================]         odule
Installing packages           [=========================]          5 SQLite 3 database driver
Committing changes            [=========================]         odule
Finished                      [=========================]         module
me@machine:~$ CRITICAL **: Source ID 1967 was not found when attempting to remove it
 libqt5waylandcompositor5-5.9.0-1+16.04+xenial+build2.amd64     QtWayland compositor library
 libqt5webkit5-5.9.0+dfsg-1+16.04+xenial+build2.amd64   Web content engine library for Qt
 libqt5widgets5-5.9.0-0neon+16.04+xenial+build5.amd64   Qt 5 widgets module
 libqt5x11extras5-5.9.0-0neon+16.04+xenial+build2.amd64 Qt 5 X11 extras
 libqt5xml5-5.9.0-0neon+16.04+xenial+build5.amd64       Qt 5 XML module
 libqt5xmlpatterns5-5.9.0-0neon+16.04+xenial+build2.amd64       Qt 5 XML patterns module
 libzip4-1:1.0.1-0+16.04+xenial+build5.amd64    library for reading, creating, and modifying zip archives (runtime)
 linux-generic-hwe-16.04-4.8.0.56.27.amd64      Complete Generic Linux kernel and headers
 linux-headers-generic-hwe-16.04-4.8.0.56.27.amd64      Generic Linux kernel headers
 linux-image-generic-hwe-16.04-4.8.0.56.27.amd64        Generic Linux kernel image
 locales-2.23-0ubuntu9.all      GNU C Library: National Language (locale) data [support]
 multiarch-support-2.23-0ubuntu9.amd64  Transitional package to ensure multiarch compatibility
 plasma-framework-5.35.0-0neon+16.04+xenial+build39.amd64       Plasma Runtime components
 plasma-integration-5.10.2-0neon+16.04+xenial+build49.amd64     Qt Platform Theme integration plugins for KDE Plasma
 plasma-look-and-feel-org-kde-breezedark-desktop-4:5.10.2-0neon+16.04+xenial+build45.all        Dark Breeze look-and-feel for Plasma
 qdbus-qt5-5.9.0-0neon+16.04+xenial+build6.amd64        Qt 5 D-Bus tool
 qml-module-qt-labs-folderlistmodel-5.9.0-0neon+16.04+xenial+build8.amd64       Qt 5 folderlistmodel QML module
 qml-module-qt-labs-settings-5.9.0-0neon+16.04+xenial+build8.amd64      Qt 5 settings QML module
 qml-module-qtgraphicaleffects-5.9.0-0neon+16.04+xenial+build6.amd64    Qt 5 Graphical Effects module
 qml-module-qtmultimedia-5.9.0-0neon+16.04+xenial+build5.amd64  Qt 5 Multimedia QML module
 qml-module-qtqml-models2-5.9.0-0neon+16.04+xenial+build8.amd64 Qt 5 Models2 QML module
 qml-module-qtquick-controls-5.9.0-1+16.04+xenial+build3.amd64  Qt 5 Quick Controls QML module
 qml-module-qtquick-controls-styles-breeze-4:5.10.2-0neon+16.04+xenial+build45.amd64    QtQuick style for Qt and KDE Software
 qml-module-qtquick-controls2-5.9.0-0neon+16.04+xenial+build4.amd64     Qt 5 Qt Quick Controls 2 QML module
 qml-module-qtquick-dialogs-5.9.0-1+16.04+xenial+build3.amd64   Qt 5 Dialogs QML module
 qml-module-qtquick-layouts-5.9.0-0neon+16.04+xenial+build8.amd64       Qt 5 Quick Layouts QML module
 qml-module-qtquick-privatewidgets-5.9.0-1+16.04+xenial+build3.amd64    Qt 5 Private Widgets QML module
 qml-module-qtquick-templates2-5.9.0-0neon+16.04+xenial+build4.amd64    Qt 5 Qt Quick Templates 2 QML module
 qml-module-qtquick-window2-5.9.0-0neon+16.04+xenial+build8.amd64       Qt 5 window 2 QML module
 qml-module-qtquick-xmllistmodel-5.9.0-0neon+16.04+xenial+build8.amd64  Qt 5 xmllistmodel QML module
 qml-module-qtquick2-5.9.0-0neon+16.04+xenial+build8.amd64      Qt 5 Qt Quick 2 QML module
 qml-module-qtwebkit-5.9.0+dfsg-1+16.04+xenial+build2.amd64     Qt WebKit QML module
 qt5-gtk-platformtheme-5.9.0-0neon+16.04+xenial+build5.amd64    Qt 5 GTK+ 3 platform theme
 qttools5-dev-tools-5.9.0-0neon+16.04+xenial+build6.amd64       Qt 5 development tools
 qtwayland5-5.9.0-1+16.04+xenial+build2.amd64   QtWayland platform plugin
Proceed with changes? [N/y] y


I'm not on Neon right now. Once I get back on it, I shall try to replicate it.


Proud to be powered by Plasma
airdrik
Registered Member
Posts
1854
Karma
5
OS
From the PackageKit web site:
The actual nuts-and-bolts distro tool (dnf, apt, etc) is used by PackageKit using compiled and scripted helpers. PackageKit isn't meant to replace these tools, instead providing a common set of abstractions that can be used by standard GUI and text mode package managers.


Meaning you may be able to do all of your installing/updating/removing/etc of packages using pkcon instead of apt/apt-get/dnf/etc if you want (but don't try to remove the underlying package managers as (besides breaking your distro) that will also break pkcon).


airdrik, proud to be a member of KDE forums since 2008-Dec.
raddison
Registered Member
Posts
515
Karma
0
airdrik wrote:From the PackageKit web site:
The actual nuts-and-bolts distro tool (dnf, apt, etc) is used by PackageKit using compiled and scripted helpers. PackageKit isn't meant to replace these tools, instead providing a common set of abstractions that can be used by standard GUI and text mode package managers.


Meaning you may be able to do all of your installing/updating/removing/etc of packages using pkcon instead of apt/apt-get/dnf/etc if you want (but don't try to remove the underlying package managers as (besides breaking your distro) that will also break pkcon).


@airdrik Thank you.


Proud to be powered by Plasma


Bookmarks



Who is online

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