This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A list of installed packages (no dependencies)


On Dec 31, 2014, at 11:22 AM, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:

> On 12/31/2014 05:11 AM, Angelo Graziosi wrote:
>> pacman -Qqe > pkglist
> 
> This sounds contradictory to what you're asking above.  If you want to
> re-install all the packages, you need the dependencies too to make a
> useful (re)install.

pacman -e lists only packages explicitly installed, leaving out packages automatically installed to satisfy dependencies.

Basically, it gives you a much shorter list than if you simply list all installed packages, without changing the result if you ask the package manager on a different, freshly-installed box to install “just” those on the shorter list.

DPKG-based OSes must maintain a similar list, because they are able to detect when an automatically-installed package is no longer needed as a result of removing the last explicitly-installed package that depended on it.  (apt-get autoremove).
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]