Sponsored Content
Operating Systems Linux Ubuntu How to list my program or package that i compile and installed? Post 302534315 by jim mcnamara on Monday 27th of June 2011 12:48:29 PM
Old 06-27-2011
visit this page:
https://help.ubuntu.com/community/AptGet/Howto

I'm not sure what you want exactly, but there are some starting points. You may NOT have dlocate on your system, so install it. There is no one command that is exactly like Solaris pkginfo:
Read about these on the above page.

dpkg -S, dpkg -L, dlocate, apt-file search
 

10 More Discussions You Might Find Interesting

1. AIX

How to check if a package is already installed?

Hi All, I want to check if the perl DBI package is already installed my AIX unix machine. is there any command to check this? Please help. Thanks, Am (2 Replies)
Discussion started by: am_yadav
2 Replies

2. HP-UX

how to package my program which can be installed on HP UX

I develop a unix program in HPUX I want to package my program to install on HPUX in some dierctory folder like /user/local/sbin/xxx and preinstall some software before install my program package like xxx.depot how can i do it, have any tools like use setupfactory tools in windows ... (4 Replies)
Discussion started by: alert0919
4 Replies

3. Linux

Find installed location of a relocatable package

Hi, I am finding the installed location of a package by: rpm -qi <package_name> And then parse the string "Relocations". If i relocate this package during installation with --relocate option , the "Relocations" string still shows the old value. Though the package has been installed on the... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies

4. AIX

How to compile a package in AIX when we download its source?

How to compile a package surce in AIX when we download its source? (2 Replies)
Discussion started by: johnveslin
2 Replies

5. Ubuntu

Download same package as installed

Hi gurus, how to (just) download already installed package ? I tried sudo apt-get -d install putty but gives me Reading package lists... Done Building dependency tree Reading state information... Done putty is already the newest version. 0 upgraded, 0 newly installed, 0 to... (7 Replies)
Discussion started by: wakatana
7 Replies

6. Solaris

Package needs to be installed for using pam_mkhomedir.so?

Hi, What is the necessary package that needs to be installed for using pam_mkhomedir.so in pam.conf file? And from where can i get that file? Is that package already shipped with Solaris 10? Because when i use that file i am getting "open_module: stat(/usr/lib/security/pam_mkhomedir.so)... (1 Reply)
Discussion started by: sathya47
1 Replies

7. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

8. Solaris

Check that supersede of package version is installed

I need a programmatic way to check, that supersede of required package is installed. At Linux I do it using rpmvercm utility to compare installed package version to my minimal requirement. So - I need analog of Linux "rpmvercm" utility for Solaris (10/11) Let us say - I know that minimal version... (10 Replies)
Discussion started by: zuismanm
10 Replies

9. Solaris

Finding the path to an executable , installed package

Hi all, Recently i wanted to see if i have openssl installed in my system (solaris 10), so i do this (not sure if this is the right way to do this) pkginfo -i | grep -i "ssl" system SUNWopenssl-commands OpenSSL Commands (Usr) system SUNWopenssl-include ... (3 Replies)
Discussion started by: javanoob
3 Replies

10. Shell Programming and Scripting

How-to verify if my package installed successfully

Can you please let me know how can i verify /check inside the script if the below to package installation commands are successful or if they failed for any reasons? 1. pkgadd -a $INSTP/install/dadmin -d $INSTP/install/apachesrv.pkg 2. pkgadd -a $INSTP/install/dadmin -d... (6 Replies)
Discussion started by: mohtashims
6 Replies
DLOCATE(1)							      dlocate								DLOCATE(1)

NAME
dlocate - program to view debian package information SYNOPSIS
dlocate [OPTIONS] [command] [ package... | PATTERN...] DESCRIPTION
dlocate is a fast alternative to dpkg for queries like `dpkg -L' and `dpkg -S' COMMANDS
(none) List all records where either the package name or the filename matches PATTERN. Note that dlocate uses GNU grep, so normal regexp metacharacters need to be taken into account or avoided by using the '-F' (Fixed String) grep option. For example, to search for `/usr/bin/[', you might try: dlocate '/usr/bin/[' or dlocate -F '/usr/bin/[' -S list all records where only the filename matches PATTERN. Note that dlocate uses GNU grep, so normal regexp metacharacters need to be taken into account. Fixed String searches are incompat- ible with -S For example, to search for `/usr/bin/[', you need to type: dlocate '/usr/bin/[' -l Regexp-enhanced emulation of `dpkg -l'. Shows all packages which match package. Internally this uses grep on a file containing the reformatted output output of 'dpkg -l' (four fields separated by tabs; status, package-name, installed version, short description) so it will return packages whose version or short description matches, too. Various flavours of regular expression are supported. For example, Extended Regexp: dlocate -l '^..[[:space:]]libc6' or Perl Regexp: dlocate -P -l '^..slibc6' Both of these will list all the packages whose names start with `libc6'. Note that because of the difference between regular expressions and dpkg's shell-style pattern matching, the output from dlocate -l is occasionally different to the output from dpkg -l. This is not a bug, regular expressions are far more flexible than shell pattern matching. This is the way dlocate is supposed to run, but it may require some knowledge of regular expressions to get the output you want. -k List package names of installed kernels and all related packages -K Detailed list of installed kernels and all related packages -L List all files in package. -s Print status of package. -ls `ls -ldF' of all files in package. -lsconf `ls -ldF' of conffiles in package. -conf List conffiles in package. -du `du -sck' of all files in package. -md5sum List md5sums (if any) of package. -md5check Check md5sums (if any) of package. -man List man pages (if any) in package. -lsman List full path/filenames of man pages (if any) in package. -lsbin List full path/filenames of executable files (if any) in package. OPTIONS
--filename-only Only output file names when searching for files --package-only Only output package names when searching for files -w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or fol- lowed by a non-word constituent character. Word-constituent characters are letters, digits, and the underscore. -i, --ignore-case Ignore case distinctions in the PATTERN -E, --extended-regexp Interpret PATTERN as an extended regular expression. This is the default. -F, --fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. -G, --basic-regexp Interpret PATTERN as a basic regular expression. -P, --perl-regexp Interpret PATTERN as a Perl regular expression. This is considered to be highly experimental within GNU grep and may warn of unim- plemented features. -h, -H, --help Produces a short help message and exits. -V, --version Display dlocate's version number and exit. -v, --verbose, --debug Produce verbose debugging output FILES
/etc/default/dlocate Configuration file with default options. Currently the only option is to enable/disable gzip compression of /var/lib/dlocate/dlo- catedb. /var/lib/dlocate/dlocatedb plain text listing of all files belonging to all packages (optionally compressed) /var/lib/dlocate/dpkg-list Listing of all packages known to dpkg. This contains the reformatted output output of 'dpkg -l'. The file format is four fields separated by tabs: status [TAB] package-name [TAB] installed version [TAB] short description EXAMPLES
To find which package `/usr/bin/[' belongs to: dlocate '/usr/bin/[' To view all man pages contained within the dpkg package: man $(dlocate -man dpkg) To purge kernel version 2.6.28.7 and all related module packages: dlocate -k | grep -- -2.6.28.7 | xargs apt-get purge To check the md5sums of the dlocate package: dlocate -md5check dlocate To use dpkg-repack to make a backup copy of all installed mythtv packages just before upgrading them: dlocate -l mythtv | grep '^.i' | awk '{print $2}' | xargs dpkg-repack # dlocate -l mythtv | grep '^.i' | awk '{print $2}' | xargs dpkg-repack dpkg-deb: building package `libmythtv-perl' in `./libmythtv-perl_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv' in `./mythtv_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-backend' in `./mythtv-backend_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-common' in `./mythtv-common_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-database' in `./mythtv-database_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-doc' in `./mythtv-doc_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-frontend' in `./mythtv-frontend_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-perl' in `./mythtv-perl_0.21.svn20090414-0.0_amd64.deb'. dpkg-deb: building package `mythtv-status' in `./mythtv-status_0.9.0-5_amd64.deb'. dpkg-deb: building package `mythtv-themes' in `./mythtv-themes_0.21-0.0_amd64.deb'. dpkg-deb: building package `mythtvfs' in `./mythtvfs_0.5.2-2_amd64.deb'. dpkg-deb: building package `python-mythtv' in `./python-mythtv_0.21.svn20090414-0.0_amd64.deb'. ENVIRONMENT VARIABLES
COLUMNS Sets the number of columns dlocate should use when displaying formatted text. Currently only used by -l. Values lower than 80 are ignored. SEE ALSO
dpkg(1), update-dlocatedb(8), grep(1) and grep-dctrl(1). AUTHOR
dlocate was written by Jim Pick <jim@pick.com> and Craig Sanders <cas@taz.net.au>. dlocate is Free Software licensed under the GNU General Public License. Debian Project 2009-06-03 DLOCATE(1)
All times are GMT -4. The time now is 10:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy