Skip to main content

Questions tagged [apt-cache]

See apt, the deafult package manager for ubuntu.

Filter by
Sorted by
Tagged with
0 votes
2 answers
37 views

apt-cache search not showing expected result

I tried to do apt-cache search skype But it shows me this as a result: libopuso - opus codec runtime library So what does that mean?
chukwuma ogbonna's user avatar
0 votes
0 answers
29 views

How to check what apps were installed on top on Windows 10 WSL2 Ubuntu 22.04.3 version by comparing correct manifest file?

How to check what apps were installed on top on Windows 10 WSL2 Ubuntu 22.04.3 version by comparing correct manifest file? Where to find correct manifest file with list of all WSL2 Ubuntu version? How ...
Kangarooo's user avatar
  • 5,085
0 votes
0 answers
48 views

How to resolve "broken cache" when installing shiny-server with gdebi

I am trying to install this shiny-server software (https://posit.co/download/shiny-server/) on Ubuntu 22.04.02. I receive an installation error and can't see any of the details due to this "...
Arthur's user avatar
  • 101
0 votes
1 answer
233 views

apt-cache search : command not found

I am using an Amazon EC2 instance with Ubuntu 22.04.1 LTS installed. I am getting "command not found" whenever I try to use "apt-cache search", both with and without "sudo &...
davej's user avatar
  • 131
0 votes
1 answer
485 views

What's the difference between `apt search <package-name>` and `apt-cache search <package-name>`?

When searching for packages in the apt repository we can use apt search <package-name> and apt-cache search <package-name> inside the terminal and we get a list of package names matching &...
skekmal's user avatar
  • 155
1 vote
1 answer
1k views

Size of a package: "Installed-Size" vs "Size"

I am trying to find out a package size. I tried the following command: $ apt-cache show mlocate | grep Size Installed-Size: 252 Size: 50136 Does "Installed-Size" mean size after unpacking ...
Yaniv G's user avatar
  • 137
5 votes
2 answers
1k views

PPA: Install old version

I am trying to install package qelectrotech on ubuntu 18.04. After installing I got (old) version 0.5-2. So I added a PPA (sudo add-apt-repository ppa:scorpio/qelectrotech-dev) source to get the ...
eSlavko's user avatar
  • 163
3 votes
3 answers
1k views

Why is 'apt-cache search' and 'find / -name' showing files associated with a package i have already purged?

I specifically installed libreoffice-writer on my system and then purged it with sudo apt-get purge '*libreoffice-writer*' --autoremove. After this i ran these terminal commands one after the other to ...
skekmal's user avatar
  • 155
0 votes
2 answers
1k views

Multiple outputs for "apt-cache policy <package name>"

From what I understand, apt-cache policy <package name> displays the pinning order and thus the releases of package name available in the apt repositories along with their priority orders. So, ...
Luce's user avatar
  • 165
3 votes
1 answer
2k views

List dependencies of package that I don't already have installed?

I want to know ahead of time how many extra packages need to be installed for a given package. I know I get something like this when I do an apt install -s package | grep ^Inst, but can I get the ...
mattb's user avatar
  • 354
0 votes
1 answer
803 views

apt-cache shows wrong package version available

I'm going mad with the following issue. I've added a PPA (ppa:savoury1/encryption) on two machines running Ubuntu 20.10. On the first one, I see: apt-cache policy openssl openssl: Installato: 1.1.1j-...
jasmines's user avatar
  • 11.1k
1 vote
1 answer
447 views

Are ubuntu 20.10 packages compatible with ubuntu 20.04 [duplicate]

I have installed Ubuntu 20.10, since it is non LTS, I'd like to have 20.04. Problem is I have already installed lots of apt packages in my 20.10. So is it possible to reuse the apt cache in my newly ...
User's user avatar
  • 128
3 votes
1 answer
2k views

How do I search the package lists of old Ubuntu releases? [duplicate]

I usually search for packages using apt-cache (e.g. apt-cache search 'flash player') or by using the search functionality on https://packages.ubuntu.com. Now suppose I wish to search the package list ...
Flux's user avatar
  • 505
6 votes
1 answer
577 views

Cannot grep apt-cache show output

I have a list of packages and I want to know which packages are not available in the ubuntu repositories. I type this command but it returns nothing : $ apt-cache show vim TotO perl 2>&1 | ...
SebMa's user avatar
  • 2,391
3 votes
1 answer
4k views

Need to try to install a specific package version -- however apt-cache madison, apt-cache policy only seem to list the latest version

Other SE posts, for example this, show how you can install a specific package version. However, I'm unsure what exactly the naming convention / syntax used for the version I want is. I need to install ...
Spooky's user avatar
  • 51
0 votes
1 answer
365 views

How to quey apt conf for default apt cache size?

I am required to report the default cache size used by apt-cache. I tried below but there is no result. How can I find out the cache size? Any guidance? $ apt-config dump | grep -i APT::Cache-Limit ...
samshers's user avatar
  • 268
0 votes
0 answers
110 views

Generate list of dependent packages with version using top level package from input file in Ubuntu or Debian

Is there something like npm lock-file in Ubuntu/Debian which can generate the Debian package tree with exact versions for direct and transitive dependencies? For example, a lock-file for Redis will be ...
user6058180's user avatar
1 vote
0 answers
38 views

How to leave deb files in cache after installing? APT::Clean-Installed "0" has no effect [duplicate]

I have an HDD installation that has spare space and I would like it to be a backup deb archive. But even with APT::Clean-Installed "0"; in apt.conf and verified with apt-config dump all newly-...
int_ua's user avatar
  • 8,644
5 votes
3 answers
42k views

How to install specific docker version from apt-cache policy docker-ce candidate list

Command "Docker-ce" list all candidates root@ubuntu:/home/master# apt-cache policy docker-ce docker-ce: Installed: (none) Candidate: 5:19.03.6~3-0~ubuntu-xenial Version table: 5:18....
apl's user avatar
  • 131
3 votes
0 answers
401 views

Apt pinning based by url

I want to have in avaiable sources two repos: https://qgis.org/ubuntu https://qgis.org/ubuntugis Is there way to pin first one with priority 600 ans second one with 450? Maybe I can add some option ...
user19291's user avatar
  • 181
2 votes
1 answer
215 views

Listing packages installed outside of official repo

I want to list all the packages in my computer which are not listed in the official ubuntu repo. I needed a script which is fast enough to do the same thing in under a minute.
Eka's user avatar
  • 2,977
0 votes
1 answer
295 views

Difference between apt-get and apt-cache [duplicate]

Being a new comer in Ubuntu environment, I am bit confused between the apt-get and apt-cache. Can anyone explain what is difference between apt-get and apt-cache. And when to use the apt-get and apt-...
DRV's user avatar
  • 103
4 votes
2 answers
291 views

Does apt-cache policy <package_name> require sudo?

Can't find any formal explanation to determine whether apt-cache policy <package_name> command requires sudo or not. Tested it in my machine (Ubuntu) with lots of packages and seems to work, ...
Cheche's user avatar
  • 165
0 votes
0 answers
47 views

why names containing dot are not taken in consideration in the result list using the command "apt-cache pkgnames <name>" [duplicate]

System: Ubuntu 18.04 LTS If you run the following command $ apt-cache pkgnames python . . . python3-case python3-rpy2 python3-pycurl-dbg python3-structlog python-natsort python-protobuf python-rpm ...
christianbueno.1's user avatar
0 votes
1 answer
498 views

How can I get *ALL* the info for available packages in apt at once?

I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. ...
Sida's user avatar
  • 139
3 votes
0 answers
88 views

apt-cache implementation

I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update). When ...
kavitha R's user avatar
1 vote
0 answers
96 views

apt-cache pulls from /var/lib/dpkg/status - How can I prevent this?

I'm attempting to compile some dependency info from an older version of Ubuntu (Artful). Basically I've downloaded the old-release stuff by adding the following lines to my /etc/var/sources.list: ...
chaig's user avatar
  • 11
0 votes
1 answer
768 views

Limit apt-cache show results to only one record (the installation candidate)

Suppose I run apt-cache show foo- it prints out all records for foo . This is a problem if I want to use it from some kind of parsing script. Is there a standard way to show only the first record?
Omer Dagan's user avatar
0 votes
1 answer
151 views

How do I use the C.L.I. to convert packages in the output from apt-cache depends into a space‐separated list for use with apt-get download? [duplicate]

How do I use the command line interface (not a GUI) to convert the list of dependency packages in the output from apt-cache depends into a space‐separated list for use with apt-get download? ...
Patrick Dark's user avatar
0 votes
0 answers
292 views

apt-cacher-ng for different distros OK?

Would setting up apt-cacher-ng in the host and serve it for different dockers running different distros be OK? E.g., even for a Ubuntu host servicing different versions of Debian?
xpt's user avatar
  • 1,055
0 votes
1 answer
395 views

System freezes, apt-cache running 100% for an hour?

Sorry if I'm overdoing the details. I'm new to the forum, that or I have another account I never knew about. I know the community prefers questions that can be answered, and I'm hoping I can get an ...
Loki Scarlet's user avatar
2 votes
1 answer
52 views

Paranoid control over packages

I am new in Ubuntu (come from Slackware). I would like to install and maintain my system in such a way that I always have available archive of installed packages in the form of deb files, starting ...
Piotr Górkiewicz's user avatar
9 votes
2 answers
7k views

update-java-alternatives jinfo file does not exist

I'm trying to learn how to quickly change which java version my system uses as described in this article: https://aboullaite.me/switching-between-java-versions-on-ubuntu-linux/ I've used apt-get ...
Max Kessler's user avatar
0 votes
2 answers
765 views

How do I remove Tumbler from Xubuntu 16.04?

I want to remove the tumbler package from Xubuntu 16.04. According to the answer here, it can be safely removed from Xubuntu 14.04. The only package that depends on it is the meta-package xubuntu-...
EmmaV's user avatar
  • 219
0 votes
1 answer
98 views

Installed but cannot seen on apt-cache

I have installed ffmpeg and libx264 via that code. I can use ffmpeg and can do simple jobs but if i write apt-cache ffmpeg it returns me Installed: (none) Why i cannot see it in apt-cache? # ...
mcan's user avatar
  • 123
0 votes
2 answers
545 views

Pycharm and other packages don't appear in the apt-cache search list [duplicate]

I can find PyCharm Pro, PyCharm CE, and PyCharm EDU in Ubuntu Software app, but I am trying to get better with apt-get commands in a terminal window. Yet when I type apt-cache search PyCharm I am ...
Yupitshat's user avatar
0 votes
2 answers
1k views

Cannot update package from ppa

I cannot upgrade handbrake using ppa:stebbins/handbrake-releases Under /etc/apt/sources.list.d I find the following file stebbing-handbrake-releases-trusty.list This contains the correct links: deb ...
wouter205's user avatar
  • 1,161
0 votes
1 answer
969 views

apt-offline for either offline or online system (mariadb 10.2 install)

I have a case where a product update may be done on either an internet-connected or non-internet connected 14.0.4 system. As part of the product update, it needs to switch from mysql to mariadb, ...
Jeremy Greene's user avatar
1 vote
0 answers
98 views

core dump for apt-cache update [duplicate]

I am trying to update my apt cache, but after a few hits I get this error semantic@semantic-Tech:~$ sudo apt-get update [sudo] password for semantic: Hit:1 https://download.sublimetext.com apt/...
moonwalker7's user avatar
1 vote
2 answers
265 views

Where is the information from 'apt show <packagename>' stored?

I have the following problem: I wrote a script, that extracts information about the installed packages of my system (Ubuntu 16.04 LTS). I am particularly interested in the source of the package. This ...
KyuMirthu's user avatar
  • 113
2 votes
1 answer
4k views

How to figure out the package version from "apt-cache show" output if there's two packages?

I've never seen that apt-cache show [exact package name] shows two package information blocks (after sudo apt-get clean): > sudo apt-cache show nvidia-367 Package: nvidia-367 Priority: optional ...
Kalle Richter's user avatar
6 votes
2 answers
4k views

apt-cache/apt search packages that are not installed

I can search packages with apt-cache search <package_name>, or search installed packages with apt list --installed | grep <package_name>. How about packages that are not installed? How ...
Kong Chun Ho's user avatar
2 votes
1 answer
3k views

apt-cache does not show older versions of a package

I need to downgrade jenkins from 2.54 to 2.53. Repo is set up as follows: $ cat /etc/apt/sources.list.d/jenkins.list deb http://pkg.jenkins-ci.org/debian binary/ The repo contains version 2.53 so I ...
Iokanaan Iokan's user avatar
3 votes
1 answer
37 views

Is this expected apt-cache behavior?

Shouldn't the number of pkgnames match "Total Package names?" ericm@saxman:~$ apt-cache pkgnames | sort | wc -l 54411 ericm@saxman:~$ apt-cache stats Total package names: 70821 (1,416 k)
R5w2ii33HhLSq's user avatar
1 vote
1 answer
1k views

Error 500 in apt-cache policy

I have installed jasper using synaptic manager. When I tried to check the version using: apt-cache policy jasper this was displayed: jasper: Installed: (none) Candidate: 0.69 Version table: ...
R. Athulya's user avatar
3 votes
2 answers
3k views

List available ffmpeg versions on 14.04

Ubuntu 14.04 server here. I want to see what versions of ffmpeg are available for download. Usually I can run apt-cache policy <packageName> to do this, but because ffmpeg was excluded from the ...
smeeb's user avatar
  • 315
0 votes
0 answers
235 views

Why does apt-cache policy claim libpng-dev doesn't exist?

When I run apt-cache policy libpng-dev I get output that says: libpng-dev: Installed: (none) Candidate: (none) Version table: Why? Isn't this command supposed to show you what version(s) are ...
smeeb's user avatar
  • 315
0 votes
2 answers
2k views

How to do an offline installation of packages in ubuntu 12.04 by exporting this folder /var/cache/apt/*

Suppose I'm on a machine with full internet access and do "apt-get update" it then updates the cache /var/cache/apt/* with binary files. Now I do a "apt-get install pkgname" and inside /var/cache/apt/...
Linus_30's user avatar
3 votes
1 answer
3k views

Why does command apt-cache show result in "E: no packages found"? Ubuntu 16.04

I don't understand why my apt-cache would be empty, as there is a gazillion packages installed on my system (like all Ubuntu systems). I tried installing a random program and running it thinking that ...
user avatar
0 votes
1 answer
180 views

Using apt-cacher for multiple ubuntu release

I am working, which has around 40 employees and almost everyone is using ubuntu desktop 14.04. I have created a local ubuntu repository(ubuntu 14.04) using apt-cacher. I am using it for updating ...
kaushik karan's user avatar