Ubuntu :: Check If A Package Is Installed Via Command Line?
Aug 20, 2010
After sifting through numerous apt-get apt-cache apt-file tutorials I still can't find a command to check if a package is installed via the terminal command/line.
I know there must be some way to do it.
Say I want to check if any package from the libavcodec*.deb family is installed how could I do this without a gui eg synaptic?
View 5 Replies
ADVERTISEMENT
Sep 8, 2010
Like i'm curious what version of wine i have installed...What are my current ati drivers installed...If wine isn't 1.2 or 1.3 how do i update it from command line?really any insight into this process would help its not absolutely critical to know but i've been looking around and haven't found informationOr some references to good articles to become a command line guru would be cool as well.
View 8 Replies
View Related
Jan 22, 2011
I'd love to know how to check the original configuration of a self-installed package? For example, I would like to install the package XXXXX. I did:
./configure
make
make install
After the installation, I would like to know what the configuration I used for XXXXX's installation. Maybe some dependencies (for example, A,B,C...) were not found so that XXXXX was installed without depending on A,B,C.... However, now, I would like XXXXX depend on A,B,C... How to check whether the current installed XXXXX's original configuration?
View 1 Replies
View Related
Jan 15, 2011
I regularly compile something from a source repository that has a certain set of dependencies. Some of these dependencies are dev libraries that are provided via other libraries but are not considered installed packages in themselves, so I cannot test for some dependencies directly.
I am currently parsing an "apt-cache showpkg" output to check for some of these provided dependencies. This is somewhat kludge-y and messy, and I was looking for a more elegant solution.
Is there an APTITUDE option that will directly test for the presence of a library that is part of some other package without having to know the name of the package that the library is part of?
View 2 Replies
View Related
May 23, 2010
I'm building a script for my place of employment. The next step in it is checking what the user input was. Determining if they added a part in there or not. The script prompts for a hostname. Hostnames are localhost.localdomain. Now, I want the script to check to see if they put localdomain and if they did, not to add the domain to the /etc/sysconfig/network, but just what they entered. So say the user inputs:
[Code]....
View 4 Replies
View Related
May 3, 2010
Is there a way to get DVD region code from command line (linux/ubuntu 9.10)? I want to script this action and store the region code (and other data about DVD) in a log.
I am looking for the info about media, not the drive.
View 1 Replies
View Related
Sep 3, 2010
Is there any command on linux to check if CD or DVD is 32bit or 64bit?
View 2 Replies
View Related
Jan 21, 2010
How to check if a directory exists in Linux command line?
[Code]....
View 5 Replies
View Related
Nov 4, 2010
Is there a flag for the cvs command to check the latest tag of a certain package
View 1 Replies
View Related
Feb 12, 2011
since I am on a Dell inspiron 1545 laptop, being able to display my battery charge is critical. After some extensive googling, I found I need a command 'acpi', which does not exist on my computer. I cannot seem to find it in the packages database; the closest thing being 'acpi-support' apt-get install also can't find it.
I tried cat /proc/acpi/battery/BAT0/state, but that only shows me if the battery is discharging or charging and doesn't give me an actual percentage.
View 1 Replies
View Related
Feb 26, 2010
Is there a unique command ( common to all Linux Distros, Solaris, Windows ) to know whether a service is installed and running on my system or not??
View 5 Replies
View Related
Feb 1, 2011
Anyone know a simple command line to check for a specific email - by subject - on an SSL secured IMAP server?
View 2 Replies
View Related
May 19, 2010
I have the suspicion that the latest gdm update (2.28.1-0ubuntu2.2) broke something because the login screen isn't displayed anymore on my desktop. My question is the following:How can I revert an update or force a package version via command line? It's pretty straight forward via Synaptic but I only have access to the recovery command line so that is not really an option.
View 1 Replies
View Related
Jun 16, 2010
How can I see all my installed program in Ubuntu from command line?
View 2 Replies
View Related
Apr 14, 2010
Total, total noob here, but I would like to know if this is possible, and maybe some tips on how to do it if it is.I just got myself a dedicated server, and I guess I assumed I could just remote control it via my own screen, much like using vnc or remote desktop, but that wasn't the case.The server has Debian 5.0, a "minimal install" is what they called it, I assume it's just installed and not configured at all.1. Connect to the server, and I guess the only way is via telnet? Since I have no VNC or remote desktop (yeah, microsoft, I know, but I don't know what it's called for Linux/GNU).2. Can I install VNC or somehow "activate" or "open" the GUI via telnet, much like a remote desktop kind of solution? I have used Debian's GUI on my laptop a couple of times, and I'm a total Windows-user, but I can navigate the graphical interface. I'm just COMPLETELY nulled when it comes to command line.So yeah, I guess I'm wondering how the heck I can remote control the server via a GUI, preferably VNC, and if I can install it via telnet or however I'm supposed to connect to the server?
View 6 Replies
View Related
Aug 10, 2010
I need to know if there is a way to command slackpkg to reinstall all installed packages...?I dont think there is but also wanted to know if I could somehow edit scripts, etc to enable this.I need this because as many know here I make variations of livecd's and I have injured one of my installs when I ran a script that I shouldn't have and it deleted several directories under /etc usr/lib and /usr/bin.I have no idea exactly what was deleted and thus I wish to reinstall all installed packages.There must be a way to do this without the borish method of manually reinstalling hundreds of pkgs.Is there a way to grep/ var /log/packages and say reinstall all?
View 11 Replies
View Related
Mar 16, 2011
I installed ubuntu 10.10 server from an usb stick. I do not have access to a wired connection and do not have a CD drive, so now I need to configure the wireless connection.for that I need to have wireless-tools which if i am not wrong are not installed by default so the question is: how can I install the wireless-tools package from an usb using only command line? note: I got internet access from another ubuntu-desktop PC so i can download any package needed, etc.
View 3 Replies
View Related
Feb 13, 2011
I want to access a file, and check the length of every line.After, i want to check and replace all lines with length over 10 characters, with a message.Does anyone have a clue on that?
View 1 Replies
View Related
May 6, 2011
Howto show all services running/installed in the command line under Centos 5.6 Server?
View 6 Replies
View Related
Sep 19, 2011
Is there a package I can download for Ubuntu that would allow me to type in,for example, cd [tab key] and then it would go through the recent cd commands I've typed in?
View 2 Replies
View Related
May 29, 2010
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies
View Related
Dec 18, 2010
I wanted to check what version of GRUB I have installed. I went to terminal and typed grub --versionI got this message back: The program 'grub' is currently not installed. You can install it by typing: sudo apt-get install grub
I am running Ubuntu 10.10 alongside windows xp pro. When I turn my pc on I have the option to boot to ubuntu or xp and at the top of the window it says that the version of grub running is "GNU GRUB Version 1.98+20100804-5Ubuntu-3" how I shold go about installing GRUB 2 or just leave it as is.
View 2 Replies
View Related
Dec 9, 2010
I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...
View 3 Replies
View Related
Feb 24, 2011
I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
View 5 Replies
View Related
Aug 22, 2011
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies
View Related
Sep 23, 2010
When i try installing anything i get errors, for example when i try to install somthing from ubuntu software center i get this.
Code: installArchives() failed: Preconfiguring packages ... Preconfiguring packages ... Selecting previously deselected package ttf-symbol-replacement. (Reading database ... dpkg: warning: files list file for package `libsdl-image1.2' missing, assuming package has no files currently installed.
[Code]....
View 4 Replies
View Related
Mar 24, 2011
i have to use lh command. I have installed all updates for ubuntu, live-build (the package for lh) and its updates. So my system is fully updated.When i hit "lh" command i get the following message: The program 'lh' is currently not installed. You can install it by typing:
sudo apt-get install live-build
When i do type: "sudo apt-get install live-build" i get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
live-build is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
View 5 Replies
View Related
Nov 12, 2010
If you don't know which shell you are using , either check the line for your account in /etc/passwd
what is that suppose to mean? how do i check it? do i check it from the terminal?
View 3 Replies
View Related
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Feb 17, 2010
how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 1 Replies
View Related