The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 16:38:20

sephiroth
Member
From: Fayetteville, NC, USA
Registered: 2025-05-27
Posts: 9  

Using apt to find the package I want...

Okay, I may be getting older, but I do not remember apt being this...   poor at returnign accurate results from a search. Mind you, I last used Debian with version 7. I went to Gentoo when Debian became a systemd distro, not a Linux distro. I still love and use Gentoo, but want something simpler for my daughter to use, so I am trying Devuan out in a VM. I had a slight issue installing, but I'm chalking that one up to the moons not being aligned.

I am in a very minimal install (nothing but the shell and SSH) and want to start installing only what we need. Okay, "apt search" should work, only it doesn't. If I do "apt search firefox" for example, I get things like bleachbit, elpa-atomic-chrome, cbindgen, dh-cargo, and pages of other things that have absolutely nothing to do with Firefox. It's like going to a Ford dealer, asking to see an F-150, and you're shown some teeny-tiny Mini Cooper. In Gentoo I can do "equery list firefox" and it shows me only those packages.

Am I doing something wrong or is this one of those things where you either need to pipe output (which I have zero faith in being accurate right now) to grep, or use some complex regex, or what? I may be over-thinking the complexity here, but searching for a package should be simple, and right now I can't find anything I want.

Last edited by sephiroth (Yesterday 16:41:30)

Offline

#2 Yesterday 16:49:29

rolfie
Member
Registered: 2017-11-25
Posts: 1,406  

Re: Using apt to find the package I want...

First comment: what you are getting back strongly depends on what you have specified in the sources.list.

Second comment: like you when I run "apt search firefox" I am getting an endless list of packages. Adding a grep might help.

I personally prefer to use "apt list" and sometimes "apt policy" to search for specific packages.

"apt list firefox" returns no output. When you add a * so that you use "apt list firefox*" you will get a longer list of firefox-esr related packages.

And firefox-esr is what is available on Debian/Devuan. If you want the latest firefox, you may need to go to the Mozilla web page.

Offline

#3 Yesterday 16:57:08

sephiroth
Member
From: Fayetteville, NC, USA
Registered: 2025-05-27
Posts: 9  

Re: Using apt to find the package I want...

Okay, I did not know about the list parameter. All I can find online are people (various distros, not just Devuan/Debian) complaining about the same thing I am, and solutions that do not appear to work. Indeed, using "apt list *firefox*" returns EXACTLY what I was looking for. Thank you again!

See? Apparently, it's a me-problem this time!

Would using Synaptic be okay after installing my shell stuff and then my desktop? Trying to find a good way of doing things that my daughter can understand.

Last edited by sephiroth (Yesterday 16:57:59)

Offline

#4 Yesterday 23:01:56

Duke Nukem
Member
Registered: 2018-11-07
Posts: 62  

Re: Using apt to find the package I want...

Synaptic is relatively easy to use. It can return some stuff that is irrelevant, especially if you choose to allow the description to be included in the search, but you can soon scroll down the list.

Offline

#5 Yesterday 23:49:47

greenjeans
Member
Registered: 2017-04-07
Posts: 1,511  
Website

Re: Using apt to find the package I want...

Been using Synaptic for many years now, it's my preferred way of doing things, easy to search, reasonably descriptive.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded December 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#6 Today 05:13:54

EDX-0
Member
Registered: 2020-12-12
Posts: 204  

Re: Using apt to find the package I want...

heh i got into linux back in ubuntu 10.04 but never got used to how synaptic works, dunno didn't mesh with my thought process so a while ago i found a script named "debianUI" which implemented a TUI wrapper over apt with fzf, seems like the author deleted the repo so i began working and created my own version in posix shell, still using fzf and made it configurable, it fuzzy searches packages by name and short description, provide a scrollable preview with the long description of the package under the "cursor".

the script is available at https://github.com/eylles/devuan-script … /apt-ui.sh and https://git.devuan.org/eylles/devuan-sc … /apt-ui.sh

i reckon just a description of a TUI program is not enough to have a couple screenshots, expect colors to be different in your terminal emulator

FqIOh0f.png
y9jkDY5.png

Online

#7 Today 05:30:32

laurie_dev1
Member
Registered: 2026-01-31
Posts: 9  

Re: Using apt to find the package I want...

There is also the package "Aptitude" which should give you hits straight away on what you are looking for.

Here is the first 5 hits

aptitude search firefox
p   activity-aware-firefox                                           - wrapper to make Firefox aware of Plasma Desktop activities                 
i   firefox-esr                                                      - Mozilla Firefox web browser - Extended Support Release (ESR)               
p   firefox-esr-l10n-ach                                             - Acoli language package for Firefox ESR                                     
p   firefox-esr-l10n-af                                              - Afrikaans language package for Firefox ESR                                 
p   firefox-esr-l10n-all                                             - All language packages for Firefox ESR (meta)         

From the man page

      search
           Searches for packages matching one of the patterns supplied on the command line. All packages which match any of the given patterns
           will be displayed; for instance, “aptitude search '~N' edit” will list all “new” packages and all packages whose name contains “edit”.
           For more information on search patterns, see the section “Search Patterns” in the aptitude reference manual.

               Note
               In the example above, “aptitude search '~N' edit” has two arguments after search and thus is searching for two patterns: “~N” and
               “edit”. As described in the search pattern reference, a single pattern composed of two sub-patterns separated by a space (such as
               “~N edit”) matches only if both patterns match. Thus, the command “aptitude search '~N edit'” will only show “new” packages whose
               name contains “edit”.
           Unless you pass the -F option, the output of aptitude search will look something like this:

               i   apt                             - Advanced front-end for dpkg
               pi  apt-build                       - frontend to apt to build, optimize and in
               cp  apt-file                        - APT package searching utility -- command-
               ihA raptor-utils                    - Raptor RDF Parser utilities

           Each search result is listed on a separate line. The first character of each line indicates the current state of the package: the most
           common states are p, meaning that no trace of the package exists on the system, c, meaning that the package was deleted but its
           configuration files remain on the system, i, meaning that the package is installed, and v, meaning that the package is virtual. The
           second character indicates the stored action (if any; otherwise a blank space is displayed) to be performed on the package, with the
           most common actions being i, meaning that the package will be installed, d, meaning that the package will be deleted, and p, meaning
           that the package and its configuration files will be removed. If the third character is A, the package was automatically installed.

           For a complete list of the possible state and action flags, see the section “Accessing Package Information” in the aptitude reference
           guide. To customize the output of search, see the command-line options -F and --sort.

Offline

#8 Today 14:42:01

JWM-Kit
Member
Registered: 2020-06-29
Posts: 164  
Website

Re: Using apt to find the package I want...

I prefer to use Debian's package search.  Even if I don't have a web browser on the machine, I can use my phone or another machine to search and find the names of the packages I wish to install.

Debian Package Search

Also synaptic is nice and simple. It provides good functionality without hiding things from the  user.

Offline

Board footer