$sudo apt-get install... how do you know the name?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$sudo apt-get install... how do you know the name?
So it seems like the universal command to install something through the terminal is sudo apt-get install whatever, but how do you know what the argument for what you want to install? Is there a list online or something?
For example, installing the Compiz Manager is sudo apt-get install compiz compizconfig-settings-manager
I know there are easier ones like pidgin, but for something like the Compiz Manager... how the heck was I supposed to know that?
So it seems like the universal command to install something through the terminal is sudo apt-get install whatever
In Ubuntu this statement is correct, but if you move to Gentoo I do not like your chances of the command working.
As smoker has displayed above, a simple search in your favourite engine will yield you the results you need.
I would probably suggest searching something like "apt-get howto install" or similar as you apparently need help with the command
rather than how to install Compiz
In Ubuntu this statement is correct, but if you move to Gentoo I do not like your chances of the command working.
As smoker has displayed above, a simple search in your favourite engine will yield you the results you need.
I would probably suggest searching something like "apt-get howto install" or similar as you apparently need help with the command
rather than how to install Compiz
Yeah sorry I am using Ubuntu.
The reason I'm posting is not so people can show me how to install stuff, or look up how to install stuff, but if there's a way to install stuff in the terminal without looking it up.
The reason I'm posting is not so people can show me how to install stuff, or look up how to install stuff, but if there's a way to install stuff in the terminal without looking it up.
That's a bit rhetorical, isn't it? You were right in your original post- you need to know the name of the package (or in some cases, meta-package; i.e kubuntu-desktop to install all the components of KDE) in order to issue the proper command argument. Otherwise, it won't install anything.
The reason I'm posting is not so people can show me how to install stuff, or look up how to install stuff, but if there's a way to install stuff in the terminal without looking it up.
Why don't you think you should look it up ? You want to install something using the shell, then you have to learn what the names are. Otherwise use the GUI and the search.
crunchbang@crunchbang:~$ apropos compiz
crunchbang@crunchbang:~$ apropos setting
bluetooth-wizard (1) - GTK wizard for setting up devices with the Linux Bluet...
ethtool (8) - Display or change ethernet card settings
gnome-eject (1) - Mount drives and volumes using HAL and read settings f...
gnome-mount (1) - Mount drives and volumes using HAL and read settings f...
gnome-umount (1) - Mount drives and volumes using HAL and read settings f...
hp-printsettings (1) - Printer Settings Utility
iwevent (8) - Display Wireless Events generated by drivers and setti...
laptop_mode (8) - apply laptop mode settings
resize (1) - set TERMCAP and terminal settings to current xterm win...
stty (1) - change and print terminal line settings
tc (8) - show / manipulate traffic control settings
toshset (1) - manipulate bios and hardware settings of Toshiba laptops
update-locale (8) - Modify global locale settings
xsetroot (1) - root window parameter setting utility for X
crunchbang@crunchbang:~$
Code:
crunchbang@crunchbang:~$ find compiz
find: ‘compiz’: No such file or directory
crunchbang@crunchbang:~$ find manager
find: ‘manager’: No such file or directory
crunchbang@crunchbang:~$ find *manager*
find: ‘*manager*’: No such file or directory
crunchbang@crunchbang:~$ whatis compiy
compiy: nothing appropriate.
crunchbang@crunchbang:~$ whatis setting
setting: nothing appropriate.
crunchbang@crunchbang:~$ whatis *setting*
*setting*: nothing appropriate.
crunchbang@crunchbang:~$ whatis x
x: nothing appropriate.
crunchbang@crunchbang:~$ find x
find: ‘x’: No such file or directory
crunchbang@crunchbang:~$ find
.
./.bash_history
./.macromedia
./.macromedia/Flash_Player
./.macromedia/Flash_Player/macromedia.com
./.macromedia/Flash_Player/macromedia.com/support
./.macromedia/Flash_Player/macromedia.com/support/flashplayer
./.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys
./.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sol
./.macromedia/Flash_Player/#SharedObjects
./.macromedia/Flash_Player/#SharedObjects/ZFQJBBWU
./.adobe
./.adobe/Flash_Player
./.adobe/Flash_Player/AssetCache
./.adobe/Flash_Player/AssetCache/4XBUTJXG
./.mozilla
./.mozilla/extensions
./.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
./.mozilla/firefox
./.mozilla/firefox/fxjklpfv.default
./.mozilla/firefox/fxjklpfv.default/sessionstore.js
./.mozilla/firefox/fxjklpfv.default/mimeTypes.rdf
./.mozilla/firefox/fxjklpfv.default/localstore.rdf
./.mozilla/firefox/fxjklpfv.default/signons3.txt
Code:
crunchbang@crunchbang:~$ whatis nm-connection-manager
nm-connection-manager: nothing appropriate.
crunchbang@crunchbang:~$ find nm-connection-manager
find: ‘nm-connection-manager’: No such file or directory
crunchbang@crunchbang:~$ cd ~
crunchbang@crunchbang:~$ cd /
crunchbang@crunchbang:/$ find nm-connection-manager
find: ‘nm-connection-manager’: No such file or directory
crunchbang@crunchbang:/$ find nm-connection-editor
find: ‘nm-connection-editor’: No such file or directory
crunchbang@crunchbang:/$ nm-connection-editor
(nm-connection-editor:3806): GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed
** (nm-connection-editor:3806): WARNING **: nm_connection_list_new: failed to load VPN plugins: Couldn't read VPN .name files directory /etc/NetworkManager/VPN.
crunchbang@crunchbang:/$ whatis
whatis what?
crunchbang@crunchbang:/$
It differs a lot at every linux. some even have to do makewhatis manually for creating a database for apropos. And it might be mkwhatis or make-whatis..... Some use wildcards and some not.....
Unfortuately this is a cause to stay and not to upgrade.....
Code:
crunchbang@crunchbang:/$ makewhatis
bash: makewhatis: command not found
crunchbang@crunchbang:/$ mkwhatis
bash: mkwhatis: command not found
crunchbang@crunchbang:/$ apropos mk
initramfs-tools (8) - an introduction to writing scripts for mkinitramfs
initramfs.conf (5) - configuration file for mkinitramfs
jfs_mkfs (8) - create a JFS formatted partition
mk_modmap (8) - translate a Linux keytable file into an xmodmap file
mkboot (8) - makes a bootdisk
mkdir (1) - make directories
mkdosfs (8) - create an MS-DOS file system under Linux
mke2fs (8) - create an ext2/ext3 filesystem
mke2fs.conf (5) - Configuration file for mke2fs
mkfifo (1) - make FIFOs (named pipes)
mkfontdir (1) - create an index of X font files in a directory
mkfontscale (1) - create an index of scalable font files for X
mkfs (8) - build a Linux file system
mkfs.bfs (8) - make an SCO bfs filesystem
mkfs.ext2 (8) - create an ext2/ext3 filesystem
mkfs.ext3 (8) - create an ext2/ext3 filesystem
mkfs.ext4 (8) - create an ext2/ext3 filesystem
mkfs.ext4dev (8) - create an ext2/ext3 filesystem
mkfs.jfs (8) - create a JFS formatted partition
mkfs.minix (8) - make a Linux MINIX filesystem
mkfs.msdos (8) - create an MS-DOS file system under Linux
mkfs.ntfs (8) - create an NTFS file system
mkfs.reiserfs (8) - The create tool for the Linux ReiserFS filesystem.
mkfs.vfat (8) - create an MS-DOS file system under Linux
mkfs.xfs (8) - construct an XFS filesystem
mkinitramfs (8) - low-level tool for generating an initramfs image
mkinitramfs-kpkg (8) - generates an initramfs image for kernel-package
mklost+found (8) - create a lost+found directory on a mounted Linux secon...
mkmanifest (1) - makes list of file names and their DOS 8+3 equivalent
mknod (1) - make block or character special files
mkntfs (8) - create an NTFS file system
mkpasswd (1) - Overfeatured front end to crypt(3)
mkreiserfs (8) - The create tool for the Linux ReiserFS filesystem.
mksquashfs (1) - Create or modify a Squash file system
mkswap (8) - set up a Linux swap area
mktemp (1) - make temporary filename (unique)
mkzftree (1) - Create a zisofs/RockRidge compressed file tree
pam_mkhomedir (8) - PAM module to create users home directory
xfs_mkfile (8) - create an XFS file
crunchbang@crunchbang:/$ apropos make
Glib::MakeHelper (3pm) - Makefile.PL utilities for Glib-based extensions
hp-makecopies (1) - Make Copies Utility
hp-makeuri (1) - Device URI Creation Utility
ln (1) - make links between files
make (1) - GNU make utility to maintain groups of programs
make-memtest86+-boot-floppy (1) - create a memtest86+ boot-floppy using GRUB.
make-ssl-cert (8) - Debconf wrapper for openssl
make_method (1p) - Turn Perl code into an XML description for RPC::XML...
MAKEDEV (8) - create devices
mkboot (8) - makes a bootdisk
mkdir (1) - make directories
mkfifo (1) - make FIFOs (named pipes)
mkfs.bfs (8) - make an SCO bfs filesystem
mkfs.minix (8) - make a Linux MINIX filesystem
mkmanifest (1) - makes list of file names and their DOS 8+3 equivalent
mknod (1) - make block or character special files
mktemp (1) - make temporary filename (unique)
mlabel (1) - make an MSDOS volume label
mmd (1) - make an MSDOS subdirectory
pf2afm (1) - Make an AFM file from Postscript (PFB/PFA/PFM) font...
remastersys (1) - script to make a bootable and installable live cd o...
script (1) - make typescript of terminal session
syslog2eximlog (8) - make syslog output suitable for eximstats
xxd (1) - make a hexdump or do the reverse.
crunchbang@crunchbang:/$ apropos whatis
whatis (1) - display manual page descriptions
crunchbang@crunchbang:/$ apropos what
exiwhat (8) - Finding out what Exim processes are doing
sudoers (5) - list of which users may execute what
w (1) - Show who is logged on and what they are doing.
w.procps (1) - Show who is logged on and what they are doing.
whatis (1) - display manual page descriptions
crunchbang@crunchbang:/$
I also try to avoid man pages but this was happily just 162 lines long :
Code:
The database searched by apropos is updated by the mandb program.
Depending on your installation, this may be run by a periodic cron
job, or may need to be run manually after new manual pages have been
installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.