How do “apt-get clean” and “apt-get clean all” differ?


What, if anything, is the difference between this command:

sudo apt-get clean

And this command:

sudo apt-get clean all

On my Lubuntu 12.04 system, simulating these commands reveals their behavior to be exactly the same:

ek@Apok:~$ apt-get -s clean NOTE: This is only a simulation! apt-get needs root privileges for real execution. Keep also in mind that locking is deactivated, so don't depend on the relevance to the real current situation! Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/* Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin ek@Apok:~$ apt-get -s clean all NOTE: This is only a simulation! apt-get needs root privileges for real execution. Keep also in mind that locking is deactivated, so don't depend on the relevance to the real current situation! Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/* Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin ek@Apok:~$

Is there ever any...

0 0
0 0


clean clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. When APT is used as a dselect(8) method, clean is run automatically. Those who do not use dselect will likely want to run apt-get clean from time to time to free up disk space. autoclean Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.from


clean Alle heruntergeladenen und zwischengespeicherten .deb-Dateien aus dem Paketcache lцschen. Der...
0 0

Firstly, my thanks to both craigevil and to jlalu for taking the time to answer my query.

My worry was real. But I asked the wrong question(s).

The worry was:

Will my existing (Lenny) Kernel-image get removed (or marked as obsolete) automatically during the kernel upgrade that is part of the upgrade to Squeeze.

I went for broke and tried it.

And the answer is "no".

Since the old version of Kernel-imaage is still "installed" after the dist-upgrade, my reconfigured boot-loader (lilo) can still find all that it needs to boot into the my Lenny partition and "autoclean" will presumably respect the unchanged install-status of the old Kernel-image.

If I have missed something vital, I would be glad to be told (before I do my housekeeping and run "autoclean"), "autoremove" sounds too automated for me; I normally run "Orphaner" to identify...

0 0
apt clean - Page 1 - AirySoftware

Speed up you PC 300%

Apartment Cleaning | Merry Maids Rating:2/10 Planning on moving out of your apartment? Find the best apartment cleaning preperation advice with Merry Maids professional cleaning services apartment cleaning tips. Location: Belmont, California, United States apt-get clean - Ask Ubuntu Rating:6/10 What, if anything, is the difference between this command: sudo apt-get clean And this command: sudo apt-get clean all On my Lubuntu 12.04 system, simulating these ... Location: San Francisco, California, United States disk usage - What is `sudo apt-get clean`? - Ask Ubuntu Rating:6/10 Mar 20, 2017 - sudo apt -get clean clears out the local repository of retrieved package...
0 0

How to use apt-get command in Professional Way :-

APT, short for Advanced package Tool, is a package management system. APT allows you to quickly and easily install, update, and remove software from the command line. Aside from its simplicity, one of the best things about APT is the face that it automatically resolves dependency issues for you. This means that if the package you are installing requires additional software, APT will automatically locate and install the additional software. This is a massive improvement over the old days of “ dependency hell” .

Installing software with APT is very straightforward. For example, let us assume you want to install the classic network-mapping tool Cheops. Once you know the name of the package you want to install, from the command line you can run apt-get install followed by the name of the software you want to install. It is always a good idea to run apt-get update before installing software. This will insure that...

0 0
Feb 4, 2010

Is there any difference between apt-get clean and aptitude clean? Do they both remove the same caches? Should I know any other commands for cleaning up wasted space on my ubuntu laptop?

Debian Configuration :: Way To Reinstall Synaptic / Aptitude And Wipe Slate Clean Fedora :: 14 - Printer HP Deskjet D1460 And - Paper As Was Clean So Clean And Remains OpenSUSE Install :: Configured Cron To Clean /tmp Directory - Add Other Locations To Clean And Especially /var/tmp? Ubuntu Installation :: Difference Between Installing 9.10 With Upgrade To 10.4 And Clean 10.4 Install Ubuntu :: Difference Between Apt-Get And Aptitude? Ubuntu :: Clean Up And Tweak My PC Ubuntu :: How To Clean Out The System Ubuntu :: Getting A Clean Reinstall Through Apt-get Ubuntu :: How To Keep TMP Partition Clean Ubuntu :: Apt-get Clean Vs Apt-get Autoclean Ubuntu :: Get Everything Back And Clean? Ubuntu :: What Does The CLEAN Command Do Ubuntu :: How Do I 'clean' Folder So I Can Use It...
0 0

Ubuntu software packaging system can accumulate unused packages or temporary files. These temporary files, also called caches, contain package files from all of the packages that you have ever installed. Eventually, this cache can grow quite large. Removing them allows you to reclaim space on your computer's hard drive for storing your documents, music, photographs, or other files.

To clear the cache you can use either the clean or the auto-clean op for a command-line program called apt-get. The clean command will remove every single cached item, while the auto-clean command only removes cached items that can no longer be downloaded (these items are often unnecessary).

To run clean go to Applications --> Accessories --> Terminal and Type

$ sudo apt-get clean

and it will ask password and give the password

packages can also become unused over time. If a package was installed to assist with running another program- and that program was...

0 0

tldr; Software Source -> Download From -> Other -> Choose Best Server

I had this problem with an ubuntu install. To debug the problem I edited /etc/apt/apt.conf and added Acquire::http::Timeout "3"; which gives a really short timeout and makes it much more obvious what the problem is.

apt-get update then showed a lot of 404's from which was the repository my ubuntu install had chosen.

Under software sources I then went to Download From -> Other -> Choose Best Server. It chose a server in Bulgaria - which actually happened to be the same server, which I suppose is aliased or redirected to. But in any case, after selecting that server directly rather than the alias, apt-get update worked perfectly. This suggests there can sometimes be some kind of problem with DNS or aliasing with the * server names, which can simply be resolved by using another server, or even the same...

0 0

Hiya Monk-

Sorry I missed the followup question, must have been a busy day for me.

As for backing up, personally I like to boot off of a Linux boot CD like an Ubuntu live or Knoppix disk, attach an external hard drive of large enough capcity, and use 'dd' to image the entire drive block by block. Let's say the drive you want to image is /dev/hda and your removable disk shows up as /dev/hde, you'd use the following:

dd if=/dev/hda of=/dev/hde conv=sync,noerror bs=1k

Tar is great for a lot of things, but a rollback would involve reinstalling the old OS to a base state, whereas with the 'dd' method, though a bit arcane, you can just boot back with the boot cd and reverse the 'if' and 'of' (input-file and output-file) arguments and reboot:

dd if=/dev/hde of=/dev/hda conv=sync,noerror bs=1k

Now, one thing tar is phenomenal for is the fact that you can use it in conjunction with dd to compress the dd image and pipe it directly to a file on...

0 0

In this tutorial you can read how to configure java and the java browser plugin.

1. Open up the Terminal (Applications > Accessories > Terminal).

2. Copy/Paste or type the following line of code into Terminal and then press enter:

3. First remove every openjdk package including icedtea-plugin:

sudo apt-get update && apt-get remove openjdk-6-jre

Because libreoffice needs openjdk, your mint linux will automatically install openjdk-7 dependencies.
That would not be any problem for this tutorial.

Just because you can and it's recommended:

sudo apt-get autoremove && apt-get clean

All unnecessary packages will be removed.

Install JAVA

Download the tar.gz java package for linux on and store the file in the folder Downloads.
(if you have Linux x64, download the x64 bit package, do not download the RPM!!)

1. In your terminal, run the command thats create a new subfolder in the...

0 0