Install package as dependency of another package
Suppose you want to install Package X, which depends on Package Y. You also want to install Package Z, which augments Package X, but is not a dependency of Package X. You run:
pacman -S X Z
Now suppose that you no longer want Package X on your system. You run:
pacman -R X
Package X is removed. Now you can run:
pacman -Qdt
To clean up packages orphaned by Package X. Provided nothing else depends on Package Y, Package Y will be removed.
All is well and good, except Package Z was not orphaned by Package X. Even though Package Z is (in this hypothetical example) useless without Package X, it won't be removed automatically because it was installed with pacman -S.
So... is there a way to install Package Z as a dependency of Package X such that, when Package X is removed, Package Z will be orphaned if no other packages depend on it?
Thank you, rwd, that does the trick. Editing the PKGBUILD is quite reasonable when Package X is in AUR, and for official packages, editing /var/lib/pacman/local/X/depends (not Z/depends) works. The downside is that I have to remember that I want Package Z to behave as a dependency of Package X and tweak Package X every time it is updated. So yes, an --asdepof option would be really swell.
For venky80 and anyone else who may be interested in this, here's a real-world example. Suppose you want to install loudmouth for use with amarok. If you later decide to uninstall amarok, you would like for loudmouth to be automatically uninstalled as well (unless some other package depends on it). loudmouth is not a depedency of amarok (incidentally it is an optional dependency, but this will work with any package that is not a dependency).
1. Install amarok
$ pacman -S amarok
2. Install loudmouth with --asdeps
$ pacman -S --asdeps loudmouth
3. Edit amarok's depends file to make it depend on loudmouth
3a. Open the file in a text editor
$ nano /var/lib/pacman/local/amarok*/depends
3b. Add "loudmouth" under the DEPENDS section; e.g.
%DEPENDS%
loudmouth
mysql>=5.1.34
kdebase-runtime>=4.2
taglib
3c. If loudmouth is an optional dependency of amarok (and it is), remove it from the OPTDEPENDS section.
3d. Save and close the depends file.
4. Test to see if it worked
$ pacman -Qtd
$ # loudmouth should not be listed
$ pacman -Rs amarok
$ # loudmouth should be listed
Similar Messages
-
SUGGEST:"Installed as a dependency for another package" -What package?
When we run "pacman -Qi" and the name of a package, ex: xulrunner (dependency of firefox), in the end, this shows up:
Install Reason : Installed as a dependency for another package
My suggestion is that it should show what package was it installed as a dependency of. Let me explain better. In this specific example, in my system, xulrunner was installed as a dependency of firefox, so, according to my suggestion, it should show exactly this:
Install Reason : Installed as a dependency for another package - firefox
As you can see in bold, my suggestion adds firefox after showing that it was installed as a dependency.
I hope a Pacman/Arch Linux developer sees this topic and develop that feature,Unlikely, tbh. Feature requests should be posted in the bugtracker.
Also.. the same pacman -Qi output already provides a 'Required By' which tells you which apps depend on the one you're looking at. Not quite the same, I know, but almost. -
Hi,
I have just installed Visual Studio Express 2013 update on Windows 8.1 OS, and started a new Windows Phone App project. When I'm opening a new XAML editor window, it fails with the following error message:
System.Exception
Package failed updates, dependency or conflict validation.
Windows cannot install package App.af631a335.af069.a4bf5.a81c7.af4c34f85cb29 because this package depends on another package that could not be found. This package requires
minimum version 0.0.0.0 of framework Microsoft.VCLibs.120.00.Debug published by any publisher to install. Provide the framework along with this package.
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary
environmentVariables, Int32& processId, Object& processData)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary,
AppDomainSetup appDomainInfo, FrameworkName targetFramework, String identifier, String baseDirectory)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry&
entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
I Have tried repairing visual studio But no use.
I have unistalled all the things and installed again but no use . Please anybody resolve this issue..Hello amanojkumar24,
I see a related error thread from here:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/b6a66a5a-e3b4-4f1a-848e-c1a6b7668b31/desgin-mode-breaks-down-during-windows-store-application-windows-8?forum=toolsforwinapps
As you've already repaired Visual Studio but Visual Studio still reports the error for you, we need to look into the error info:
This package requires minimum version 0.0.0.0 of framework Microsoft.VCLibs.120.00.Debug published by any publisher to install.
So here we need this package "Microsoft.VCLibs.120.00.Debug"
Please do the following:
1. Check your installation that you have enabled VC++ components. If you haven't or if you are not sure of it, please check this blog:
http://blogs.msdn.com/b/vcblog/archive/2014/08/01/c-runtime-for-sideloaded-windows-8-1-apps.aspx
Then you can download and install the package from
here.
2. You can also make sure you've registered and already have the license:
http://stackoverflow.com/questions/20010421/vs-2013-xaml-editor-and-microsoft-vclibs-120-00-debug
Someone fixed it by using this solution.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Building package using makepkg does not resolve dependency for another
I am trying to install yaourt from the AUR. Yaourt required that package-query be installed, and this package further required another, etc.
In short, package-query required yajl, which I downloaded from the AUR. This package does not actually have a PKGBUILD, but rather un-tars into a file that you need to merge with /usr. After doing so I tried to make the package-query package but was still met with a dependency discrepancy. Luckily, yajl was available in the official repositories (same version). After using pacman to install it everything went fine and package-query built and installed fine.
When I went to build yaourt, using makepkg, it failed and informed that I was missing a dependency, package-query.
So, in short, is there a registry or something that keeps track of these installed packages? I imagine that when running makepkg there is a query against installed packages to see if you meet the dependency requirements. What can I do to build yaourt in this situation?
Last edited by sherrellbc (2014-06-08 18:37:19)cower doesn't have any dependencies that are not in the official repositories. It doesn't build packages automatically, but it will download the source tarballs and unpack them for you. It can also handle dependencies with the official repos and the AUR.
So for example, if you were to do cower -dd yaourt it would tell you that gettext, diffutils, and pacman are in the official repos. Then it would download the source tarball for package-query and resolve all of its dependencies. And it would download the yauort source tarball and unpack that for you. So it gives you an idea of what depends on what and in which order you should build and install.
But you really just shouldn't use yaourt. Many of the upgrade issues that arise on these forums stem from people using yaourt (particularly those who blindly run yaourt -Syua). The pacaur I mentioned above is a bash script that wraps cower. So it too should be able to be built and installed without having to resolve other AUR dependencies.
Edit:
But none of this is really answering the question though. When I make a package from the AUR, the dependency requirement when trying to install another package is never met. That is, if package A requires B and I then installed B (from the AUR), when I try to make A again it still informs me that B was never installed.
If this is the case, then you really don't know how to properly use the AUR, and thus should be reading up on that rather than trying to work around it with an AUR helper.
Last edited by WonderWoofy (2014-06-08 19:18:47) -
Change a package to become a dependency of another
i was wondering if i could change a package to be a dependency, Well, i know i could use abs to change PKGBUILD.
But yesterday gnome was upgraded on my machine, and i got an error with a package. I suspected it was because gnome was running, and was a little bit quick just to kill X and install the package explicit. Now i didn't get any error messages, but the package was no longer a dependency of gnome. Could i change that one package to become a dependency of gnome once again?bender02 wrote:As far as I understood the first three posts, that was exactly the point. That's why I posted the 'language remark', since I gathered that OP wanted to 'have the reason to be installed as a dependency' and not really change the dependency list of anything. But again, maybe I'm wrong.
I interpreted the thread's title and the last line of his post to mean that he wanted it to be handled as if it were a true dependency of gnome (as he claims it used to be):
jerryluc wrote:Could i change that one package to become a dependency of gnome once again?
Only the OP really knows what he wanted though (and maybe not even him, depending on how philosophical you want to get ). -
Viewing dependency tree for non-installed packages [SOLVED]
Pactree only seems to work for installed packages so I was wondering if there was any alternative that could work with any package (installed or not).
Last edited by anonymous_user (2011-07-09 14:46:05)Well it's not as fast as pactree but I hacked this together for you:
#!/bin/bash
pactree () {
echo "$2|--$1" | cut -c4-
for dep in $(pacman -Si $1 2>/dev/null | awk -F':' '/Depends On/ { print $2 }')
do
dep=$(echo $dep | egrep -o "^[a-z0-9._-]+")
[[ -n $dep ]] && pactree $dep "$2| "
done
pactree $1 ""
Perhaps you should replace the occurences of "pactree" with something else.
Edit: Prettier output.
Last edited by Lars Stokholm (2011-07-09 09:22:52) -
[SOLVED] cannot install package query
I want to install yaourt, but I can't seem to install package query. I acquired the tarball from here and followed all the steps here
[maarten@maarten ~]$ cd ~/src
[maarten@maarten src]$ tar -zxvf package-query.tar.gz
package-query/
package-query/PKGBUILD
[maarten@maarten src]$ cd ~/src/package-query
[maarten@maarten package-query]$ makepkg -s
==> Making package: package-query 1.0.1-1 (Sun Jul 8 11:09:03 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading package-query-1.0.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 361k 100 361k 0 0 205k 0 0:00:01 0:00:01 --:--:-- 226k
==> Validating source files with md5sums...
package-query-1.0.1.tar.gz ... Passed
==> Extracting Sources...
-> Extracting package-query-1.0.1.tar.gz with bsdtar
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for alpm_version in -lalpm... yes
checking for yajl_free in -lyajl... yes
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.26.0
checking for libcurl >= version 7.19.4... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for git... git
checking for .git/... no
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
package-query:
Build information:
source code location : .
prefix : /usr
sysconfdir : /etc
conf file : /etc/pacman.conf
localstatedir : /var
database dir : /var/lib/pacman/
compiler : gcc
compiler flags : -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
package-query version : 1.0.1
using git version : no
git ver :
Variable information:
root working directory : /
aur base url : [url]http://aur.archlinux.org[/url]
make all-recursive
make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
Making all in src
make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT aur.o -MD -MP -MF .deps/aur.Tpo -c -o aur.o aur.c
mv -f .deps/aur.Tpo .deps/aur.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
alpm-query.c: In function 'alpm_pkg_get_realsize':
alpm-query.c:486:9: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/alpm-query.Tpo .deps/alpm-query.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
util.c: In function 'ltostr':
util.c:532:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
util.c: In function 'itostr':
util.c:525:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
util.c: In function 'concat_backup_list':
util.c:480:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
util.c: In function 'string_fcat':
util.c:342:11: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/util.Tpo .deps/util.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT color.o -MD -MP -MF .deps/color.Tpo -c -o color.o color.c
mv -f .deps/color.Tpo .deps/color.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT package-query.o -MD -MP -MF .deps/package-query.Tpo -c -o package-query.o package-query.c
mv -f .deps/package-query.Tpo .deps/package-query.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lcurl -Wl,-O1,--sort-common,--as-needed,-z,relro -o package-query aur.o alpm-query.o util.o color.o package-query.o -lyajl -lalpm
libtool: link: gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o package-query aur.o alpm-query.o util.o color.o package-query.o -lcurl -lyajl -lalpm
make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
Making all in doc
make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
==> Entering fakeroot environment...
==> Starting package()...
Making install in src
make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
test -z "/usr/bin" || /bin/mkdir -p "/home/maarten/src/package-query/pkg/usr/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c package-query '/home/maarten/src/package-query/pkg/usr/bin'
libtool: install: /usr/bin/install -c package-query /home/maarten/src/package-query/pkg/usr/bin/package-query
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
Making install in doc
make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man8" || /bin/mkdir -p "/home/maarten/src/package-query/pkg/usr/share/man/man8"
/usr/bin/install -c -m 644 package-query.8 '/home/maarten/src/package-query/pkg/usr/share/man/man8'
make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: package-query 1.0.1-1 (Sun Jul 8 11:09:18 CEST 2012)
[maarten@maarten package-query]$ dir
PKGBUILD package-query-1.0.1.tar.gz src
package-query-1.0.1-1-i686.pkg.tar.xz pkg
[maarten@maarten package-query]$ sudo pacman -U package-query-1.0.1-1-i686.pkg.tar.xz
Password:
loading packages...
error: 'package-query-1.0.1-1-i686.pkg.tar.xz': invalid or corrupted package (PGP signature)
I already reran pacman-key --init and pacman-key --populate archlinux after removing the allready acquired signatures (/etc/pacman.d/gnupg). But it keeps returning the same error.
Do I need to add another key manually to install packages manually from the AUR?
Last edited by maartennnnnnn (2012-07-08 09:44:01)I edited your post to change the \[quote\] tags to \[code\] tags - it makes for a much easier to read post
https://wiki.archlinux.org/index.php/Fo … s_and_Code
Two options are to change your SigLevel or sign your own key... -
How can I get a list of installed packages grouped by core, test community etc.
I want to create a text file of all the packages which are there in my system and use it as a reference for re-installation.
Also is there is a way to find the minimal list of packages to be installed over the core packages, that would be awesome.
So in shot the requirement is core install+ minimal list of packages which will pull all the dependency to install all the packages which are in my system.
thank youThis might help:
$ #To list all packages on your system:
$ pacman -Q
$ #To list all packages you've explicitly installed that are not required by another package
$ pacman -Qet
$ #To list all packages that are not required by another package
$ pacman -Qt
To get a list of installed packages grouped by repo would be a bit more work... something like this should work, though it's not too efficient
#!/bin/bash
rm /tmp/repo-pkgs.txt /tmp/local-pkgs.txt /tmp/local-pkgs-sorted.txt
pacman -Ss | grep -v "^ " | cut -f1 -d' ' | sort > /tmp/repo-pkgs.txt
pacman -Q | cut -f1 -d' ' | sort > /tmp/local-pkgs.txt
for pkg in $(cat /tmp/local-pkgs.txt); do
grep ".*/$pkg\$" /tmp/repo-pkgs.txt >> /tmp/local-pkgs-sorted.txt
done
cat /tmp/local-pkgs-sorted.txt | sort
Last edited by Cerebral (2008-02-25 16:42:47) -
Bluetooth and Install packages
Hey folks,
I've got a problem with my iBook G4. I'm using Tiger 10.4.5 and recently, when I want to send files via bluetooth, I just can't. I click the option "Send file" and nothing happens, whilst before there opened a windows, where I could choose the file to send. I don't think that it's a hardware problem, because I can perfectly receive files on my iBook via bluetooth.
Then I've got another question. I don't own this Mac for very long and I'm still not used to the install packages. I just downloaded a "Bluetooth uptdate", but the file I get is a ".dmg" file and when I doubleclick it, a ".pkg" file opens. I just don't know what to do with it, because when I want to open that file, it says that there is no standard programm chosen to open it. The same happens when I download the latest "iTunes" version, the only difference is that I get a ".spkg" file (but the problem is the same) - can anybody tell me, what I have got to do with these files?
Thanks in advance
Mikey
iBook G4 Mac OS X (10.4.5)karol wrote:
You can check the package versions online http://www.archlinux.org/packages/
If you put packages in the CacheDir (/var/cache/pacman/pkg/ by default), you will be able not only to install them but you will also get dependency resolution with pacman - is that what you want?
Zulfikar wrote:I do not want pacman to go to the internet and download.
Arch installation should be updated often, the easiest way is via the internet. Is it a problem?
"If you put packages in the CacheDir (/var/cache/pacman/pkg/ by default), you will be able not only to install them but you will also get dependency resolution with pacman - is that what you want?
" I THINK THIS IS WHAT I WANT.
My net is not that fast it is a 512Kbps line and the ISP downgrades my speed to 256Kbps after 10 GB. For LMDE i have copied the updates to a folder which I can use with apt.
Right now I am on a 4 Mbps line so I want to download lets say kde 4.7 , do I need to go to kde or can I get the latest kde from here ?
Last edited by Zulfikar (2012-01-16 12:28:57) -
Hmm - reason for installing package...
All,
I'm not sure if this issue has been brought up before, but I want to get some feedback about a pacman idea that I had.
pacman -Qi lets you see dependencies for installed packages. It helps you see why you installed a package. Super helpful. But it doesn't show everything.
Sometimes you've installed a package because there was an install-time recommendation for another package. Or perhaps I was writing a python program and tried out a library, but then later used a different library and so the library is still installed, but not being used. In cases like these, there may be no clean way to hook up an installed package with the "reason" it was installed.
My idea is to have some type of flag on pacman where I can record the reason I'm installing a package (or group of package). Then that reason will be stored for when I run pacman -Qi later on. It can just be a one-line piece of text. No need for anything fancy.
pacman -S python-sqlobject --reason "trying this for project blah"
It might also be helpful to have a flag where you can set the "reason" on a package after it's already been installed.
pacman -Q python-sqlobject --reason "trying this for project blah"
Then, later:
> pacman -Qi python-sqlobject
Repository : extra
Name : python-sqlobject
Version : 0.10.1-1
URL : http://sqlobject.org/
Licenses : LGPL
Groups : None
Provides : None
Depends On : python>=2.5 setuptools>=0.6c8 python-formencode>=0.7
Optional Deps : None
Conflicts With : None
Replaces : None
Download Size : 278.70 K
Installed Size : 1108.91 K
Packager : Eric Belanger <[email protected]>
Architecture : i686
Build Date : Tue 27 May 2008 06:21:26 PM PDT
MD5 Sum : c3898c5caa7df3f63f04d7afa71fa6d8
Description : A popular Object Relational Manager for providing an object
interface to your database, with tables as classes, rows as
instances, and columns as attributes
Reason : trying this for project blah
I envision this being extremely helpful when cleaning up and administering packages on my system (for me personally).
Can anyone see the benefit of this? Has this already been brought up? Are there simpler solutions people are already using? ...I actually think this is a pretty good idea, but I'm not sure how many would use it. I often run across packages on my system and don't remember installing them even though pacman says I did it explicitly
-
No longer able to install packages
HI,
My remote desktop (3.5.1) crashed about a week ago. After the crash I have been unable to "Install packages" to any client from this laptop. There have been no changes in our network, or the client machines, or my login/password.
Under ARD preferences I've even set it to Full access for non-admins, just in-case. The client machines do allow installs in their remote desktop settings. I do have another machine with ARD 3.5.1 and CAN successfully install from that machine to the same clients.
I am able to copy, and run unix commands- only Install seems to be affected. Any ideas what might be causing this?Try this link: https://discussions.apple.com/thread/3213196?tstart=0
Which hopefully takes you to a post by Scooter Magrooter that basically says
1. Open Remote Desktop Preferences/Task Server
2. Select to use a remote task server.
3. Put in an IP - scooter says any IP, I am much more successful with the IP of the computer I am on.
4. Probably will be asked for username and password.
5. Mine jumps back to "use this computer" automatically. If not, select that and close out.
Now try it.
I have to do this regularly. Annoying, but liveable.
Hope this does it for you.
Chicster -
How to install packages from local folder
Hi all,
I have downloaded all arch linux packages from the following URLs:
ftp://mirrors.kernel.org/archlinux/core/os/i686/
ftp://mirrors.kernel.org/archlinux/extra/os/i686/
ftp://mirrors.kernel.org/archlinux/community/os/i686/
and then have saved them to an external hard disk. Then I have attached that external hard disk to my system and packages are available in following folders:
/mnt/external_hd/Arch_Linux/Core-OS/
/mnt/external_hd/Arch_Linux/Extra-OS-1/
/mnt/external_hd/Arch_Linux/Extra-OS-2/
/mnt/external_hd/Arch_Linux/Community-OS-1/
/mnt/external_hd/Arch_Linux/Community-OS-2/
/mnt/external_hd/Arch_Linux/Community-OS-3/
Now I want to install some or all packages from these folder with the help of pacman command. I am seeing that package corresponding to wvdial command is available in the /mnt/external_hd/Arch_Linux/Extra-OS-1/ folder. But how to use pacman command so that I can install wvdial package from that folder?
In addition to this if I want to install ALL Extra Packages available in the folders /mnt/external_hd/Arch_Linux/Extra-OS-1/ and /mnt/external_hd/Arch_Linux/Extra-OS-2/ then how to execute the pacman command?
Please send me step by step instructions so that I shall be able to install some or all downloaded packages.
I shall remain thankful for this forever.
Best Regards ...
Pankaj KumarHi fukawi2,
Thanks for reply and searching for my username on google. It is true that I am a freelance s/w developer but I am not installing Arch Linux for any client. I am installing it due to some other reasons. In fact I started working on Red Hat and then on Fedora when I was a student of bachelor degree course in computer applications. Then later I searched open suse and started using it. I am using open suse from its 10.1 version. However the recent version of this distribution has become much resource consuming. So I am in the need of a light weight linux distribution. And I encountered Arch Linux. Then I purchased its installation disk from an online shop and installed it on my system. But only text mode is working at this moment. Since I want to use X window and so I started to follow the syntax of pacman command. But it is connecting to internet. Since my internet connection is slow (average speed of 10kbps) and so I requested the same online shop to download all packages from Arch Linux repository and send them to me. Therefore now I am having all those packages in my local external hard disk drive in the folder mentioned in my first post. Now I want to install packages from these folder. And so in order to get help I have come to this forum.
I have also followed the steps given on the pages https://wiki.archlinux.org/index.php/Pa … l_commands and https://wiki.archlinux.org/index.php/Pa … repository. But when I am trying to install a particular package using the following command:
pacman -U wvdial
then it is asking for a dependency. I know that the dependent package in my local folder but why it is not being automatically taken by pacman command? Can you please explain it.
That is why I am asking help only for customization and usages of pacman in order to install packages from local folder. But each member in this forum is only referring to long written manuals and not giving me exact solution which I think will involve four/five steps.
Best Regards ...
Pankaj Kumar -
How to install packages on client via VPN
Hello
I have a number of users that use laptops and mostly connect to the office network via an OSX VPN Server. I can see when they connect, copy files to them and control their screens.
I do not seem to be able to install packages to them. The ARD console goes through the motions but the package never gets to the remote end and is never installed.
Can anyone shed any light on this? From what I can tell this may be a multicast issue - if this is true how can I get the VPN server to route the multicast traffic, or alternatively how can I stop ARD from using multicast for these clients?
Any help appreciated. If I can not use the package installation system it will make managing these users quite difficult.
Kind regards
Jason
Mac OS X (10.4.9)Hi Jason,
Have you found anything else that can't be done or is acting strangely using ARD with those connecting via VPN? Another question that comes to mind is the up and down speed of both your office's connection to the net and that of the clients connecting in. You said that you can copy files to them--does that work with large files as well? Have you tried copying the install package rather than installing it to see if that works?
I ask all of this because I've found in my support role with VPN clients, that viewing/controlling the screen, copying small files, chats, and alerts all work fine. But a large install package? I don't even bother. Sure, it works locally, but the upload speed of the company's internet connection isn't fast enough to do large copies or installs remotely. (Which is why I'm wondering about copying a large file.) I usually get a "Communication Error".
Power Mac G5 1.8GHz DP, 1.5GB RAM, Mac OS X (10.4.10) -
Post install package installation on RHEL5
Hi,
Can I have some advise please.
When I installed Oracle's RHEL5 Linux OS I failed to select quite a lot of packages that I needed (like Apache for example.)
I've been double clicking on the RPM packages and getting lots of dependacy errors and searching though the other CD's trying to find the dependencies and of course running into more dependancy problems.
I am not yet in a position to buy the support agreement as I just want to get the server working!
So my question is - Is there any easy way to do post install package upgrades/installs or should I just reinstall the OS?
I didn't have these problems with RHEL4 so any help would be appreciated. If I have to reinstall thats OK, I'm just getting nowhere fast at the moment.
Kind regards,
James
ps I tried copying all the RPMS to the server and running createrepo but that didn't help either and of course, simple packages (with no dependents like sendmail-cf worked fine)Hi,
Well rather then complaining I just went ahead and manually resolved all my dependencies.
To make this convenient I copied all RPM's to the server and issue rpm -ivh enough times till I found all dependencies.
Issues arose when the required rpm wasn't identified by it's rpm filename but a quick search on Google identified the rpm to which the SO belonged.
As an example installing 'squirrelmail' took about 15 rpm runs until successful. Whilst this doesn't compare well with 1 yum run :-) it really didn't take very long.
Kind Regards,
James -
Redownload and reinstall all installed packages
I need to redownload and reinstall all installed packages, because I made some tests with prelink and something goes wrong. I found an article in wiki that covers download of installed packages, but howto reinstall them all?
The problem is that some apps are acting weird. I also have problem with compiling of AUR packages, because I get this error message:
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
The gcc package is installed. Any sugestions?
Last edited by macros78 (2007-09-09 12:19:21)I think this should do it...
pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt
pacman -Sy `cat packages.txt` --noconfirm
Maybe you are looking for
-
Hi - I am having a hard time getting a header line on our custom positive pay file. I am using the function IBY_FD_EXTRACT_EXT_PUB.get_pmt_ext_agg to return the header row. The function also returns a value specific to each check. Right now the heade
-
Downloading file in xls format
Hi All, I have a program that downloads data from a server to the local machine in xls format, via a JSP. The data comes from a ResultSet which I read and convert to csv format, but using ";" as the separator (it works..) and "\n" for each new line I
-
Time settings for Caracas Venezuela in ICLOUD
Time settings for Caracas Venezuela used to be GMT-4 (Caracas - La Paz), those settings were changed to GMT-4.30 some time ago. When I check these settings in my ICLOUD apparenty the have still the old GMT-4. So if I sinc my outlook with ICLOUD I get
-
No abre pantalla principal Captive 3
Cuando abro Adobe Captive 3 a me aparece la pantalla principal... Ademas, se queda como frizada y cuando oprimo X(exit) tengo que ir a CTRL+ALT+ DEL para salir del Adobe Captive. Hice lo siguiente y continua igual - remove programa e instale. Tengo p
-
12.1にアップデートしてから.終了時に. 「0.003 MB のメモリを割り当てることができません.このフレームのレンダリングに必要なメモリ使用量を減らすか. RAM を増設してください (12803 / Text Engine Data).詳しくは.www.adobe.com/go/learn_ae_mem_jp を参照してください.」 という警告文が出るようになりましたが.バグのようですね. http://forums.adobe.com/message/5827454 起動時に.時々レイ