-   Linux - Software (
-   -   adding a package into apt-get cache (

fakie_flip 08-17-2006 08:21 AM

adding a package into apt-get cache
Why can't I add a package to the source cache?


ubuntu@ubuntu:~/Desktop$ apt-cache
apt for linux i386 compiled on Apr 18 2006 19:46:35
Usage: apt-cache [options] command
      apt-cache [options] add file1 [file2 ...]
      apt-cache [options] showpkg pkg1 [pkg2 ...]
      apt-cache [options] showsrc pkg1 [pkg2 ...]

apt-cache is a low-level tool used to manipulate APT's binary
cache files, and query information from them

  add - Add a package file to the source cache
  gencaches - Build both the package and source cache
  showpkg - Show some general information for a single package
  showsrc - Show source records
  stats - Show some basic statistics
  dump - Show the entire file in a terse form
  dumpavail - Print an available file to stdout
  unmet - Show unmet dependencies
  search - Search the package list for a regex pattern
  show - Show a readable record for the package
  depends - Show raw dependency information for a package
  rdepends - Show reverse dependency information for a package
  pkgnames - List the names of all packages
  dotty - Generate package graphs for GraphVis
  xvcg - Generate package graphs for xvcg
  policy - Show policy settings

  -h  This help text.
  -p=? The package cache.
  -s=? The source cache.
  -q  Disable progress indicator.
  -i  Show only important deps for the unmet command.
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-cache(8) and apt.conf(5) manual pages for more information.
ubuntu@ubuntu:~/Desktop$ apt-cache add avidemux_2.2_preview2_ubuntu.deb
E: Unimplemented

pljvaldez 08-17-2006 11:24 AM

Did you try sudo apt-cache add file.deb? Maybe you have to have root priveledges...

fakie_flip 08-17-2006 11:25 AM

Yes, I did. I got the same problem. Are you able to do it on Debian?

pljvaldez 08-17-2006 11:38 AM

Actually, now that I try it, no. It's not clear to me what it is for though. From the man page it says

add adds the named package index files to the package cache. This is for debugging only.
I guess I don't know enough about the package management system to know what the index files are or what they're for...

Edit: Oh and it looks like your post above says it adds it to the source cache. Not sure what that means, but can you only use this on source files? Maybe it doesn't work on binary files?

All times are GMT -5. The time now is 04:34 PM.