How to search for Debian packages of a theme

New to Debian (Or Linux in general)? Ask your questions here!

How to search for Debian packages of a theme

Postby Deblib » 2018-06-02 19:40

Hi, I would like to know how I can search for packages of a specific theme in the Debian repositories, using the Terminal.
Deblib
 
Posts: 98
Joined: 2016-05-14 14:41

Re: How to search for Debian packages of a theme

Postby cronoik » 2018-06-02 19:56

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!
cronoik
 
Posts: 236
Joined: 2015-05-20 21:17

Re: How to search for Debian packages of a theme

Postby Head_on_a_Stick » 2018-06-02 20:40

I would use
Code: Select all
aptitude search theme
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7562
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to search for Debian packages of a theme

Postby None1975 » 2018-06-04 15:16

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 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 481
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: How to search for Debian packages of a theme

Postby Wheelerof4te » 2018-06-04 15:50

Wait, there is another, even leaner option!
Code: Select all
apt search theme
User avatar
Wheelerof4te
 
Posts: 999
Joined: 2015-08-30 20:14

Re: How to search for Debian packages of a theme

Postby Head_on_a_Stick » 2018-06-04 18:35

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:~ $
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7562
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to search for Debian packages of a theme

Postby sunrat » 2018-06-04 23:05

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
sunrat
 
Posts: 2325
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: How to search for Debian packages of a theme

Postby Head_on_a_Stick » 2018-06-05 05:23

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.
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7562
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: sparky25 and 6 guests

fashionable