Delete old packages from local repository
I want to create a private repository for Ubuntu.
I executed the command
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz and successfully created my repository. After a few days, I updated my ubuntu and put the downloaded archives from /var/cache/apt to my personal repository. Again I executed the above command to update my repository, but it shown some issues with versions (multiple versions for same program). I tried with
-m switch to allow multiple versions, and it was successfully created the repository.
My questions is, can I automatically remove the older versions from my personal Ubuntu repository (It could save my disk space)