Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #225618 > unrolled thread
| Started by | local10 <local10@tutanota.com> |
|---|---|
| First post | 2020-07-31 15:20 +0200 |
| Last post | 2020-07-31 20:20 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.user
aptitude: a way to reinstall a package and all its dependents? local10 <local10@tutanota.com> - 2020-07-31 15:20 +0200
Re: aptitude: a way to reinstall a package and all its dependents? local10 <local10@tutanota.com> - 2020-07-31 18:20 +0200
Re: aptitude: a way to reinstall a package and all its dependents? Sven Joachim <svenjoac@gmx.de> - 2020-07-31 18:50 +0200
Re: aptitude: a way to reinstall a package and all its dependents? Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2020-07-31 20:20 +0200
| From | local10 <local10@tutanota.com> |
|---|---|
| Date | 2020-07-31 15:20 +0200 |
| Subject | aptitude: a way to reinstall a package and all its dependents? |
| Message-ID | <AyD74-2ts-3@gated-at.bofh.it> |
Am looking for a way to reinstall a package and all "subpackages" the package depends on. Normally I use aptitude to install packages. Any ideas? Thanks
[toc] | [next] | [standalone]
| From | local10 <local10@tutanota.com> |
|---|---|
| Date | 2020-07-31 18:20 +0200 |
| Message-ID | <AyFVg-4aL-9@gated-at.bofh.it> |
| In reply to | #225618 |
Jul 31, 2020, 15:28 by semihozlemlinuxuser@gmail.com: > ... > Also I did not put any license agreement on this, and did not think about it commercially. I am assuming that this wont be used for commercial purposes, but educational purposes, or for the purpose of making open source more available. I do not consider it a major improvement over aptitude or the whole debian and linux project. But should you consider using it for commercial purposes, or outside open-source goals and aims, I would like to know, and ask to discuss such use. > > Semih Ozlem > Thanks for the detailed response, I'll look into it. My need for this is just a personal one-time use. I have a package that started to behave a bit strange so I want to reinstall it with all its dependencies just to be sure that nothing got corrupted over time. I was hoping there would be a simple, easy way to do it but if not my plan was to purge the package and its dependences with aptitude's --purge-unused option and then just install it again as if it was new. I think this may be a simpler option for me. Regards,
[toc] | [prev] | [next] | [standalone]
| From | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| Date | 2020-07-31 18:50 +0200 |
| Message-ID | <AyGoh-4kD-1@gated-at.bofh.it> |
| In reply to | #225618 |
On 2020-07-31 15:10 +0200, local10 wrote:
> Am looking for a way to reinstall a package and all "subpackages" the
> package depends on. Normally I use aptitude to install packages.
Something like this should do the trick:
# aptitude reinstall mypackage '~i~Rmypackage'
See the "Search term reference" in the aptitude user manual[1].
I haven't found a way to that recursively.
Cheers,
Sven
1. https://www.debian.org/doc/manuals/aptitude/ch02s04s05.en.html
[toc] | [prev] | [next] | [standalone]
| From | Semih Ozlem <semihozlemlinuxuser@gmail.com> |
|---|---|
| Date | 2020-07-31 20:20 +0200 |
| Message-ID | <AyHNn-5ig-5@gated-at.bofh.it> |
| In reply to | #225643 |
[Multipart message — attachments visible in raw view] — view raw
Also dpkg has the following options to check files, dpkg -V packagename
for verifying, dpkg -C packagename for auditing
-V, --verify [package-name...]
Verifies the integrity of package-name or all packages if
omitted, by comparing information from the files installed by a package
with the files metadata information
stored in the dpkg database (since dpkg 1.17.2). The origin
of the files metadata information in the database is the binary packages
themselves. That metadata gets
collected at package unpack time during the installation
process.
Currently the only functional check performed is an md5sum
verification of the file contents against the stored value in the files
database. It will only get
checked if the database contains the file md5sum. To check
for any missing metadata in the database, the --audit command can be used.
The output format is selectable with the --verify-format
option, which by default uses the rpm format, but that might change in the
future, and as such, programs
parsing this command output should be explicit about the
format they expect.
-C, --audit [package-name...]
Performs database sanity and consistency checks for
package-name or all packages if omitted (per package checks since dpkg
1.17.10). For example, searches for
packages that have been installed only partially on your
system or that have missing, wrong or obsolete control data or files. dpkg
will suggest what to do with them
to get them fixed.
Sven Joachim <svenjoac@gmx.de>, 31 Tem 2020 Cum, 19:43 tarihinde şunu yazdı:
> On 2020-07-31 15:10 +0200, local10 wrote:
>
> > Am looking for a way to reinstall a package and all "subpackages" the
> > package depends on. Normally I use aptitude to install packages.
>
> Something like this should do the trick:
>
> # aptitude reinstall mypackage '~i~Rmypackage'
>
> See the "Search term reference" in the aptitude user manual[1].
> I haven't found a way to that recursively.
>
> Cheers,
> Sven
>
>
> 1. https://www.debian.org/doc/manuals/aptitude/ch02s04s05.en.html
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web