I am a new Ubuntu Linux sysadmin. How do I get a list of all installed packages on server. How to list all installed packages using apt- get command on Ubuntu or Debian server? You need to use dpkg and other commands as follow to see a list of all installed packages on Ubuntu or Debian Linux server. Just list all installed packages with a short description. Add ports.ubuntu.com to package list and show. codebase that also runs on packages.debian. by now and I've installed some rewrite rules so that old. Debian-archive-squeeze-automatic.gpg or. Debian isn't Ubuntu and won't have sudo installed by. which may or may not include the Debian Packages. NodeBB requires the following software to be installed. for Debian 6 (Squeeze). sources.list.d/dotdeb.list $ sudo echo 'deb-src http://packages.dotdeb.org.![]() Type the following command: $ dpkg- query - l. Sample outputs: Desired=Unknown/Install/Remove/Purge/Hold. Status=Not/Inst/Conf- files/Unpacked/hal. F- conf/Half- inst/trig- a. Wait/Trig- pend. |/ Err?=(none)/Reinst- required (Status,Err: uppercase=bad). Name Version Architecture Description. The GNU Accounting utilities for process and login accounting. Access control list utilities. App. Armor. ii apt 1. APT. ii apt- utils 1. Monitor for system resources and process activity. Debian base system miscellaneous files. Debian base system master password and group files. GNU Bourne Again SHell. GNU bc arbitrary precision calculator language. P4- 8ubuntu. 1. 4 amd. Version of 'host' bundled with BIND 9. X. ii bsdmainutils 9. Free. BSD. Just want to see a list of packages only? Try: $ dpkg- query - f '${binary: Package}\n' - WSample outputs: unattended- upgrades. How to get a list of packages installed. Type the following command$ dpkg - -get- selections | grep - v deinstall. Sample outputs: Fig. Show a list of packages installed. Another option is to use apt command as follows: $ apt list - -installed. OR just search all php based packages using grep command: $ apt list - -installed | grep php. Sample outputs: Listing.. P4- 8ubuntu. 1. 4 amd. How to save a list to a text file. The syntax is as follows on server. Or$ dpkg - l | grep ^ii | awk ‘{ print $2}’ > mylist. Now copy mylist. txt to server named server. How to restore a list on server. On server. 2 restore installations from the mylist. OR$ sudo apt- get install - y $(< mylist. Finally run the following command to remove unwanted packages: $ sudo apt- get autoremove. Above command should restore/install packages from backups or another server. Another option is to use aptitude command as follows: ### Create the list of software to a file called /tmp/packages. Now that your list is copyied use apt- get/synaptic to install the packages###. Login to another serverssh root@server. Restore it aptitude install $(cat/tmp/packages. Create the list of software to a file called /tmp/packages. Now that your list is copyied use apt- get/synaptic to install the packages#### 1. Login to another server. Restore it. aptitude install $(cat /tmp/packages. Posted by: Vivek Gite The author is the creator of nix. Craft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+. Find packages installed from a certain repository with aptitude. Using aptitude, in order to look for installed packages outside of the stable branch, you can use: aptitude search "? To see versions as well as package- names (and instead of descriptions) you can use the command with the format option (- F for short), as follows. F "%p %V %v" "? narrow(? For more formats, please take a look at the manpage (here's documentation with avail. That works for example, in Debian if you installed packages outside Squeeze (by runing, for example, apt- get install - t sid package- name. You can look where an installed package comes from via apt- cache policy, usage is as follows: apt- cache policy < package- name>. For example, my python- numpy package renders the following output: $ LANG=C apt- cache policy python- numpy. Installed: 1: 1. 6. Candidate: 1: 1. 6. Version table. 1: 1. Packages. 1: 1. 6. Packages. *** 1: 1. Packages. 9. 90 http: //ftp. Packages. That means that I'm one version behind current sid/main's branch, so I have an old- sid version installed. I see I don't have the stable one because it is yet 1. I'm currently at 1. At time of submittal this package was already updated : ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |