Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was manually installing X server and lxde on my cellphone's chrooted ubuntu.

There were a couple of packages suggested after install related to touchscreen support.

I can't remember the name of those packages. I checked the apt and dpkg logs and history but it only shows the messages during install not the suggestions after.

How can I get again this suggestions without reinstalling?

share|improve this question

Maybe $ apt-cache show lxde | grep Suggests ?

share|improve this answer
nope, I guess these suggestions came from a required automatically selected package (there where at least 20 and I would like not having to check them all), but still, great command you just introduced me to, thanks – NotGaeL Mar 26 '12 at 17:30

Just found this today, for anyone who will be referring this in the future,

$ apt-cache depends lxde

If you want just the recommends, you can grep it.

$ apt-cache depends lxde |grep -i recommends


share|improve this answer

If you want the packages dependencies and only the ones that are related to touchscreens you might use nested commands:

apt-cache depends lxde

Here we get all dependencies. Now lets get the name of the packages only:

apt-cache depends lxde | awk -F': ' '{print $2}'

Now, getting rid of undesirable symbols < and >:

apt-cache depends lxde | awk -F': ' '{print $2}' | sed 's|[<>,]||g'

Now lets wrap it all in an apt-show:

apt-cache show $(apt-cache depends lxde | awk -F': ' '{print $2}' | sed 's|[<>,]||g') | grep -i touch

You will notice at the end a grep -i touch, you can change the touch part for whatever you are looking.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.