Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Almost everyday update ~200MB #11666

Closed
mnikolovm opened this issue Mar 31, 2019 · 2 comments
Closed

Almost everyday update ~200MB #11666

mnikolovm opened this issue Mar 31, 2019 · 2 comments

Comments

@mnikolovm
Copy link

mnikolovm commented Mar 31, 2019

How'd you do it?

sudo apt-get update

What should happen?

It should update as it do, but it takes about 200mb every other day and the old version is not deleted but stacked and i can not find it.
Today it get updated to 5.0.15+20190330165102
over 5.0.14+20190327174753
As you can see the last update was on 03.27 and the new is on 03.30. It goes from 5.0.14 to 5.0.15, but update like that happens every 2-3 days and the old version is NOT deleted but stacked and takes space. Where is it located?

Metasploit version

5.0.15-dev-

I installed Metasploit with:

https://github.com/trustedsec/ptf

OS

Ubuntu 18.04.02

@bcoles
Copy link
Contributor

bcoles commented Mar 31, 2019

As you installed Metasploit with ptf, it would make sense to read the ptf installer for Metasploit.

Presumably you're updating from the git repository. It's natural that the .git data will increase in size (it's currently ~500MB total).

Presumably you're also running bundle install to install dependencies. This will leave old dependencies installed. You can free up some space by removing unused dependencies. You can find Ruby gems for there are multiple versions installed with: gem list | grep ,.

For example, here's the results from a box I haven't cleaned in a while:

# gem list | grep metasploit
metasploit-concern (2.0.5)
metasploit-credential (3.0.3, 3.0.1)
metasploit-model (2.0.4)
metasploit-payloads (1.3.65, 1.3.62, 1.3.53, 1.3.40, 1.3.37, 1.3.34)
metasploit_data_models (3.0.8, 3.0.6, 3.0.5, 3.0.1, 3.0.0)
metasploit_payloads-mettle (0.5.7, 0.4.2, 0.4.1, 0.4.0, 0.3.8)

The older versions can be safely removed, unless you have other packages which depend on them, or multiple versions of Metasploit installed.

@mnikolovm
Copy link
Author

Ruby gems for there are multiple versions installed with: gem list | grep ,.

For example, here's the results from a box I haven't cleaned in a while:

# gem list | grep metasploit
metasploit-concern (2.0.5)
metasploit-credential (3.0.3, 3.0.1)
metasploit-model (2.0.4)
metasploit-payloads (1.3.65, 1.3.62, 1.3.53, 1.3.40, 1.3.37, 1.3.34)
metasploit_data_models (3.0.8, 3.0.6, 3.0.5, 3.0.1, 3.0.0)
metasploit_payloads-mettle (0.5.7, 0.4.2, 0.4.1, 0.4.0, 0.3.8)

You are correct, sudo apt autoclean fixed the issue. 8 versions deleted. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants