Cyberithub

How to Install CopyQ on Ubuntu 20.04 LTS [Step by Step]

Advertisements

In this article, I will take you through the steps to install CopyQ on Ubuntu 20.04 LTS. CopyQ is an advanced open source Clipboard Manager which monitors your System Clipboard and save its contents like images, texts and html in customized tabs. Then it can be later copied and pasted directly into any application. It comes with many inbuilt features which makes it a easy choice to manage Clipboard. We will see some of those important features in below section.

Important Features

  • Quickly browse and filter items in clipboard history
  • Sort, create, edit, remove, copy/paste, drag’n’drop items in tabs
  • Add notes or tags to items
  • System-wide shortcuts with customizable commands
  • Paste items with shortcut or from tray or main window
  • Fully customizable appearance
  • Advanced command-line interface and scripting
  • Ignore clipboard copied from some windows or containing some text
  • Support for simple Vim-like editor and shortcuts

How to Install CopyQ on Ubuntu 20.04 LTS [Step by Step]

How to Install CopyQ on Ubuntu 20.04 LTS

Also Read: How to Install Homebrew Package Manager on Ubuntu 20.04 LTS

Step 1: Prerequisites

a) You should have a running Ubuntu 20.04 LTS Server.

b) You should have sudo or root access to run privileged commands.

c) You should have apt or apt-get utility available in your System.

 

Step 2: Install dependencies

There are few dependency packages which needs to be installed before you try to install CopyQ package. You can install the required package by using apt install software-properties-common command as shown below.

NOTE:

Please note that here I am using root user to run all the below commands. You can use any user with sudo access to run all these commands. For more information Please check Step by Step: How to Add User to Sudoers to provide sudo access to the User.
root@localhost:~# apt install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.99.9.8).
software-properties-common set to manually installed.
The following packages were automatically installed and are no longer required:
libllvm11 libtie-ixhash-perl libxml-xpathengine-perl
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.

 

Step 3: Setup Repository

Next step is to setup the Repository from where you can download and install copyq package as it is not available in default Ubuntu Repo. You can add the repository by using add-apt-repository ppa:hluk/copyq command as shown below.

root@localhost:~# add-apt-repository ppa:hluk/copyq
CopyQ is advanced clipboard manager with editing and scripting features.
More info: https://launchpad.net/~hluk/+archive/ubuntu/copyq
Press [ENTER] to continue or Ctrl-c to cancel adding it.

 

Step 4: Update Your Server

Next step is to update the package cache with all the package information from newly added repository using apt update command. If you don't update the package cache then System will not able to find the copyq package information.

root@localhost:~# apt update
Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:4 http://ppa.launchpad.net/hluk/copyq/ubuntu focal InRelease [18.0 kB]
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:7 https://artifacts.elastic.co/packages/oss-7.x/apt stable InRelease
Ign:8 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease
Hit:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release
Get:10 http://ppa.launchpad.net/hluk/copyq/ubuntu focal/main amd64 Packages [636 B]
Get:13 http://ppa.launchpad.net/hluk/copyq/ubuntu focal/main Translation-en [692 B]
Hit:12 https://packages.graylog2.org/repo/debian stable InRelease
Fetched 19.4 kB in 3s (6,688 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

 

Step 5: Install CopyQ

Now you can download and install copyq package from the newly added repository using apt install copyq command as shown below. You can check more about this on copyq installation documentation.

root@localhost:~# apt install copyq
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libllvm11 libtie-ixhash-perl libxml-xpathengine-perl
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
kwayland-data kwayland-integration libdbusmenu-qt5-2 libdouble-conversion3 libfam0 libkf5config-bin libkf5config-data libkf5configcore5
libkf5coreaddons-data libkf5coreaddons5 libkf5guiaddons5 libkf5idletime5 libkf5notifications-data libkf5notifications5 libkf5waylandclient5
libkf5windowsystem-data libkf5windowsystem5 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5qml5 libqt5quick5 libqt5svg5
libqt5texttospeech5 libqt5waylandclient5 libqt5waylandcompositor5 libqt5widgets5 libqt5x11extras5 libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme
qttranslations5-l10n qtwayland5
Suggested packages:
fam qt5-image-formats-plugins qt5-qmltooling-plugins
The following NEW packages will be installed:
copyq kwayland-data kwayland-integration libdbusmenu-qt5-2 libdouble-conversion3 libfam0 libkf5config-bin libkf5config-data libkf5configcore5
libkf5coreaddons-data libkf5coreaddons5 libkf5guiaddons5 libkf5idletime5 libkf5notifications-data libkf5notifications5 libkf5waylandclient5
libkf5windowsystem-data libkf5windowsystem5 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5qml5 libqt5quick5 libqt5svg5
libqt5texttospeech5 libqt5waylandclient5 libqt5waylandcompositor5 libqt5widgets5 libqt5x11extras5 libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme
qttranslations5-l10n qtwayland5
0 upgraded, 36 newly installed, 0 to remove and 28 not upgraded.
Need to get 16.8 MB of archives.
After this operation, 74.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
....................................................................

 

Step 6: Check CopyQ Version

After successful installation, you can check the installed version by using copyq --version command as shown below. As you can see below, current version is 5.0.

root@localhost:~# copyq --version
CopyQ Clipboard Manager v5.0.0~focal
Qt: 5.12.8
KNotifications: 5.68.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 20.04.3 LTS

 

Step 7: Open CopyQ

You can go to Activities and type copyq in the Search area as shown below. You can see that application will show up like below. Click on that CopyQ application.

How to Install CopyQ on Ubuntu 20.04 LTS [Step by Step] 2

Once clicked, it should open like below. That's it. You can now proceed with the usage.

How to Install CopyQ on Ubuntu 20.04 LTS [Step by Step] 3

 

Step 8: Uninstall CopyQ

Once you are done with CopyQ, you can choose to uninstall it by using apt remove copyq command as shown below.

root@localhost:~# apt remove copyq
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
kwayland-data kwayland-integration libdbusmenu-qt5-2 libdouble-conversion3 libfam0 libkf5config-bin libkf5config-data libkf5configcore5
libkf5coreaddons-data libkf5coreaddons5 libkf5guiaddons5 libkf5idletime5 libkf5notifications-data libkf5notifications5 libkf5waylandclient5
libkf5windowsystem-data libkf5windowsystem5 libllvm11 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5qml5 libqt5quick5 libqt5svg5
libqt5texttospeech5 libqt5waylandclient5 libqt5waylandcompositor5 libqt5widgets5 libqt5x11extras5 libtie-ixhash-perl libxcb-xinerama0 libxcb-xinput0
libxml-xpathengine-perl qt5-gtk-platformtheme qttranslations5-l10n qtwayland5
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
copyq
0 upgraded, 0 newly installed, 1 to remove and 28 not upgraded.
After this operation, 8,241 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 207129 files and directories currently installed.)
Removing copyq (5.0.0~focal) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
..............................................................................

Leave a Comment