Re: how many Linux machines do you run?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >If the server is running an RPM-based distribution, then rpm -qa, but it
> >will likely print out a list of thousands of packages
>
> Is there a way to copy output into a file?

The usual Unix way:

  $ rpm -qa > list_of_packages.txt

and you can then review "list_of_packages.txt" as you see fit.

If it's a Debian-based system, you can use "dpkg" to obtain similar
info:

  $ dpkg --get-selections > list_of_packages.txt

which will include all installed and installed-but-then-uninstalled
packages.  If you only want the currently-installed packages, you
can use

  $ dpg --get-selections | awk '$NF == "install"{print $1}' > list_of_packages.txt

-tim




To unsubscribe from this group and stop receiving emails from it, send an email to blinux-list+unsubscribe@xxxxxxxxxx.




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]