LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2013, 08:35 PM   #1
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Rep: Reputation: Disabled
Clear dpkg history


I downloaded a .deb for Skype but realize I don't need to install it. Problem is, I run "apt-get install -f" and it pulls all dependencies for Skype. Is there a way to clear that, so let's say, if I want to install a new .deb and it needs it's dependencies than dpkg would not call for Skype's libraries?

Code:
junior@Junior:~$ sudo su
[sudo] password for junior: 
root@Junior:/home/junior# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libasound2:i386 libaudio2:i386 libavahi-client3:i386
  libavahi-common-data:i386 libavahi-common3:i386 libcomerr2:i386
  libcups2:i386 libdbus-1-3:i386 libfontconfig1:i386 libfreetype6:i386
  libgcrypt11:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386
  libgssapi-krb5-2:i386 libgstreamer-plugins-base0.10-0:i386
  libgstreamer0.10-0:i386 libice6:i386 libjbig0:i386 libjpeg8:i386
  libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386
  liblcms1:i386 liblzma5:i386 libmng1:i386 liborc-0.4-0:i386 libp11-kit0:i386
  libpcre3:i386 libpng12-0:i386 libqt4-dbus:i386 libqt4-network:i386
  libqt4-xml:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386
  libqtwebkit4:i386 libselinux1:i386 libsm6:i386 libsqlite3-0:i386
  libssl1.0.0:i386 libtasn1-3:i386 libtiff4:i386 libuuid1:i386 libxml2:i386
  libxrender1:i386 libxss1:i386 libxt6:i386 qdbus qtchooser uuid-runtime
Suggested packages:
  libasound2-plugins:i386 nas:i386 rng-tools:i386 krb5-doc:i386 krb5-user:i386
  libvisual-0.4-plugins:i386 gstreamer-codec-install:i386
  gnome-codec-install:i386 gstreamer0.10-tools:i386
  gstreamer0.10-plugins-base:i386 liblcms-utils:i386 libthai0:i386
  libicu48:i386 qt4-qtconfig:i386 qt4-default qt5-default
Recommended packages:
  uuid-runtime:i386 xml-core:i386
The following NEW packages will be installed:
  libasound2:i386 libaudio2:i386 libavahi-client3:i386
  libavahi-common-data:i386 libavahi-common3:i386 libcomerr2:i386
  libcups2:i386 libdbus-1-3:i386 libfontconfig1:i386 libfreetype6:i386
  libgcrypt11:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386
  libgssapi-krb5-2:i386 libgstreamer-plugins-base0.10-0:i386
  libgstreamer0.10-0:i386 libice6:i386 libjbig0:i386 libjpeg8:i386
  libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386
  liblcms1:i386 liblzma5:i386 libmng1:i386 liborc-0.4-0:i386 libp11-kit0:i386
  libpcre3:i386 libpng12-0:i386 libqt4-dbus:i386 libqt4-network:i386
  libqt4-xml:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386
  libqtwebkit4:i386 libselinux1:i386 libsm6:i386 libsqlite3-0:i386
  libssl1.0.0:i386 libtasn1-3:i386 libtiff4:i386 libuuid1:i386 libxml2:i386
  libxrender1:i386 libxss1:i386 libxt6:i386 qdbus qtchooser uuid-runtime
0 upgraded, 52 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 28.0 MB of archives.
After this operation, 81.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
 
Old 08-24-2013, 01:16 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Try this:

sudo apt-get clean


Found at:

http://www.cyberciti.biz/faq/debian-...package-cache/
 
Old 08-24-2013, 01:24 AM   #3
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
Didn't work, it still tries to download those packages. =/
 
Old 08-24-2013, 01:44 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
You need to uninstall skype (even if it isn't fully installed and configured, it thinks it wants to be) before it'll stop attempting to pull down the dependencies. apt-get purge skype MIGHT work, but if not, while it's a long way around, this will in the end accomplish what you want:

Code:
apt-get install -f
just deal with the fact that it's going to download the packages and install them
Code:
apt-get purge skype
apt-get autoremove --purge
apt-get autoclean
This will then purge all files for skype, purge all packages that were pulled down for skype, and purge the downloaded .debs for any software that is no longer installed on your system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I clear history in Linux ibrahimt Linux - Security 8 07-14-2009 02:15 AM
How to clear history hi_msh Linux - Newbie 2 01-12-2006 05:40 AM
history clear command suguname Linux - Newbie 5 03-05-2005 09:32 AM
How does one clear Konqueror's history? forand Linux - Software 9 10-10-2003 01:11 AM
Clear History Mystified Linux - Newbie 1 03-25-2002 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration