Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to search for Debian packages of a theme

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Deblib
Posts: 119
Joined: 2016-05-14 14:41

How to search for Debian packages of a theme

#1 Post by Deblib »

Hi, I would like to know how I can search for packages of a specific theme in the Debian repositories, using the Terminal.

cronoik
Posts: 310
Joined: 2015-05-20 21:17

Re: How to search for Debian packages of a theme

#2 Post by cronoik »

One way to do that is to use the wonderful apt-file. For example you know that the file /usr/share/themes/CleanIce-Debian/gtk-2.0/gtkrc ist part of the cleanice theme and you want to know the name of the package which contains cleanince, you can do to following to get the package name:

Code: Select all

apt-file search /usr/share/themes/CleanIce-Debian/gtk-2.0/gtkrc
Have a nice day!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: How to search for Debian packages of a theme

#3 Post by Head_on_a_Stick »

I would use

Code: Select all

aptitude search theme
deadbang

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1387
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 64 times

Re: How to search for Debian packages of a theme

#4 Post by None1975 »

To search for a particular package by name or description:

Code: Select all

apt-cache search keyword
where the search keyword can be all or part of a package name or any words used in its description.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: How to search for Debian packages of a theme

#5 Post by Wheelerof4te »

Wait, there is another, even leaner option!

Code: Select all

apt search theme

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: How to search for Debian packages of a theme

#6 Post by Head_on_a_Stick »

Wheelerof4te wrote:even leaner option
Nope:

Code: Select all

empty@hegel:~ $ aptitude search theme | wc -l
174
empty@hegel:~ $ apt search theme | wc -l                                

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

1184
empty@hegel:~ $
deadbang

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: How to search for Debian packages of a theme

#7 Post by sunrat »

I think he meant the command is leaner, a whole 5 characters less! apt search does indeed return more info.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: How to search for Debian packages of a theme

#8 Post by Head_on_a_Stick »

sunrat wrote:apt search does indeed return more info.
Well yes but have you actually checked the output?

It matches so broadly that too many results are returned, this is why I suggested `aptitude` instead.
deadbang

Post Reply