Hello,
I am attempting to write a (bash) shell script that will do some basic reporting based on the APT utilities and dpkg.
I need the following in the report:
Packages installed
(COLUMNS=200 dpkg -l | grep '/^ii/' > packages_installed)
Packages not installed
I suppose that I can do ... (0 Replies)
Hi,
I am getting this warning messages when I run dpkg --purge
dpkg -r
apt-get remove --purge
aptitude purge with sudo permission to remove completely a custom application that is installed through debian dpkg command. Some of the directories in that package install path is still left out... (0 Replies)
Are there different rules with wildcards in dpkg? I was looking at this.
Getting information about packages
% dpkg -l \*apt\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/... (1 Reply)
Greetings!
Here's one which has been bugging me for a bit ;)
As might be known, LibreOffice is available to some of us Linux folk as a large set of debs. Of course, being a curious sort, I'd like to dig in and recreate the original tree which is composed of these assorted archives.
So, I... (1 Reply)
Greetings!
I'm trying to get dpkg to just completely extract a multi-part *.deb archive set into a single folder called "output". Simple?
Hmmmm....
dpkg --noforce --unpack *.deb /output/Console after ops:
However, "--noforce" is taken directly from the helpfile Options listing as furnished... (8 Replies)
I need some explanation, afer executing this command in the terminal
dpkg --configure -abecause synaptic told me it does not work properly and told me to do so, otherwise it would not even start.
My mobile media like usb-drive or stick is named like below, 641ea5c8-47d2-4473-ae01-6499d2f7ccba!... (0 Replies)
Hi All,
I tried to install Message Broker toolkit in Linux server. When I tried to run mqsicreatebar, I received below error
-bash-3.2$
-bash-3.2$ pwd
/opt/IBM/WMBT800
-bash-3.2$ ./mqsicreatebar
./mqsicreatebar: error while loading shared libraries: libgtk-x11-2.0.so.0: wrong ELF class:... (1 Reply)
Discussion started by: Anusha M
1 Replies
LEARN ABOUT DEBIAN
dpkg::substvars
Dpkg::Substvars(3) libdpkg-perl Dpkg::Substvars(3)NAME
Dpkg::Substvars - handle variable substitution in strings
DESCRIPTION
It provides some an object which is able to substitute variables in strings.
METHODS
my $s = Dpkg::Substvars->new($file)
Create a new object that can do substitutions. By default it contains generic substitutions like ${Newline}, ${Space}, ${Tab},
${dpkg:Version} and ${dpkg:Upstream-Version}.
Additional substitutions will be read from the $file passed as parameter.
It keeps track of which substitutions were actually used (only counting substvars(), not get()), and warns about unused substvars
when asked to. The substitutions that are always present are not included in these warnings.
$s->set($key, $value)
Add/replace a substitution.
$s->set_as_used($key, $value)
Add/replace a substitution and mark it as used (no warnings will be produced even if unused).
$s->get($key)
Get the value of a given substitution.
$s->delete($key)
Remove a given substitution.
$s->mark_as_used($key)
Prevents warnings about a unused substitution, for example if it is provided by default.
$s->no_warn($key)
Obsolete function, use mark_as_used() instead.
$s->load($file)
Add new substitutions read from $file.
$s->parse($fh, $desc)
Add new substitutions read from the filehandle. $desc is used to identify the filehandle in error messages.
$s->set_version_substvars($sourceversion, $binaryversion)
Defines ${binary:Version}, ${source:Version} and ${source:Upstream-Version} based on the given version strings.
These will never be warned about when unused.
$s->set_arch_substvars()
Defines architecture variables: ${Arch}.
This will never be warned about when unused.
$newstring = $s->substvars($string)
Substitutes variables in $string and return the result in $newstring.
$s->warn_about_unused()
Issues warning about any variables that were set, but not used
$s->set_msg_prefix($prefix)
Define a prefix displayed before all warnings/error messages output by the module.
$s->save($file)
Store all substitutions variables except the automatic ones in the indicated file.
"$s" Return a string representation of all substitutions variables except the automatic ones.
$str = $s->output($fh)
Print all substitutions variables except the automatic ones in the filehandle and return the content written.
AUTHOR
Raphael Hertzog <hertzog@debian.org>.
1.16.15 2014-06-05 Dpkg::Substvars(3)