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

How to install software from command line?

Tags: None
(comma "," separated)
User avatar
lcarneiro
Registered Member
Posts
3
Karma
0
OS
Hello :)

I'm not sure, but I think that KDE Neon uses Ubuntu's repos and its own repos. If this is true, then how do I install packages from Ubuntu's repos and from Neon's repos from the command line?

Thanks in advance,
Luís Carneiro
Gummidge
Registered Member
Posts
26
Karma
1
Have a look at either 'man apt' and 'man apt-get' for command line entries only.
Aptitude gives you a terminal based format but you have to use apt to install it first.
User avatar
lcarneiro
Registered Member
Posts
3
Karma
0
OS
Thank you for the quick answer Gummidge :)

BTW the main purpose of pkcon client is to control Neon's repos packages?
Gummidge
Registered Member
Posts
26
Karma
1
Sorry, never used or even looked at pkcon client.

A favourite with many Ubuntu/Debian users is to install

https://www.techrepublic.com/article/ho ... aresystem/

It updates, checks and cleans your system - first thing I run everyday on log-in - it even updates itself!
You can read the script file that it runs to understand what it does which is interesting in itself.
User avatar
lcarneiro
Registered Member
Posts
3
Karma
0
OS
Thank you for the awesome suggestion ;)

I asked about the pkcon utility because in the KDE Neon's FAQ it says the following:
How do I Update to the Latest Software?

KDE neon does continuous deployment of the latest KDE software which means there are nearly always new versions of our software to update to. We recommend using Plasma Discover's updater which appears in your panel:

If you prefer to use the command line you can use the pkcon command:

pkcon refresh
pkcon update

This will install all new packages and uses the same PackageKit code as Plasma Discover. Some uses of apt do not install new packages which makes it less suitable for KDE neon.
Gummidge
Registered Member
Posts
26
Karma
1
Apt can either '--upgrade' or '--full-upgrade'

The first option only deals with already installed software whereas the latter does the same but also installs any new or additional software that is required. So using Neon usual recommendation is to 'apt --full-upgrade' everytime.
airdrik
Registered Member
Posts
1854
Karma
5
OS
Presumably both the Ubuntu repos and the Neon repos should be listed together in your apt config, so from the perspective of making sure you're updating/installing from both it shouldn't matter whether you use apt(-get), aptitude or pkcon (packagekit is just a distro-agnostic wrapper around the distro's native tools, which makes it nice for devs to create cross-distro package manager apps like Discover, Muon or Gnome Software Center). In either case it should pull in updates for packages in both the Ubuntu repos and Neon repos.

From there, pkcon should provide whatever functionality that most users would need to update or install packages from the repos, so it just becomes a matter of preference whether you like pkcon's or apt's (or aptitude's) experience more.


airdrik, proud to be a member of KDE forums since 2008-Dec.
mackay
Registered Member
Posts
16
Karma
0
I'm not very familiar with pkcon, so I have been using the apt command. So to install something, you should search for the exact name of the app if it is in the repositories and then use the apt install command. For example, if you want chromium (browser) then the command is
Code: Select all
sudo apt install chromium-browser

Typically one updates apt first before installing, so to install kmymoney for example
Code: Select all
sudo apt update
sudo apt install kmymoney


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar